4

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

nilgun
  • 10,460
  • 4
  • 46
  • 57
jiminssy
  • 2,149
  • 6
  • 28
  • 45
  • Maybe this would help: https://stackoverflow.com/questions/50694118/how-to-resolve-fouc-in-react-js/50727768#50727768 – turkus Jun 06 '18 at 19:05

1 Answers1

2

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

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

Maktouch
  • 3,117
  • 20
  • 21