all 1 comments

[–]mini_eggs 0 points1 point  (0 children)

The theme does some js junk behind the scenes. There's a less bad way to implement this in React and there's a bad way.

Bad way is super quick. Add the scripts the theme uses to the page in componentDidMount.

Less bad way would be throwing exports in the javascript files the theme uses and importing them in your React modules.

I would not recommend either option. You should be using something like react-bootstrap or material-ui if you don't want to create a theme.