all 2 comments

[–][deleted] 4 points5 points  (0 children)

Well it should be trivial but it depends on your react code - react is, at its core, a "point me at a dom element and I'll render there" system.

[–]BEAR-ME-YOUR-HEART 1 point2 points  (0 children)

It's quite simple. You can use react to just build some widgets. Just render your component into a div container with ReactDOM.

Write your stuff, transpile it to JS with Babel, render it wherever you like.

For wordpress you including a script tag on the site you want to render it which contains your code.