How do I resolve FOUC (Flash of uneven content) using React components?

As the title says, how do you solve the FOUC problem with React components? When my React components get mounted and the componentDidMount handler gets called, I bind to the various JQeuryUI widgets. This is where FOUC happens.

+3


source to share


1 answer


1) Try DOM server side: https://github.com/mhart/react-server-example



2) Try not to use jQuery plugins. Find or rewrite it in React. Here's a site containing many react components: http://react.rocks

+1


source







All Articles