DEV Community

Cover image for How to Include React in a WordPress Theme

How to Include React in a WordPress Theme

Zac Gordon on December 04, 2019

If you like this post, please check out my Courses and Online Bootcamps at JavaScript for WordPress. React Ships with WordPress Ever ...
Collapse
 
abmsourav profile image
Keramot UL Islam

Thanks for sharing.

Collapse
 
polrk profile image
Vladislav Polyakov

Does it work with typescript ?

Collapse
 
zgordon profile image
Zac Gordon

Haven't tried it, any reason you could think of that it wouldn't? Pretty sure it functions just like React anywhere else, since it's all still React under the hood :)

Collapse
 
bowervicky1970 profile image
bowervicky1970

Hi Zac

Have followed this tutorial and everything seems to be working in the Terminal but nothing is rendering for me within the react-app element on the page. I have even cloned your repo and that is doing the same thing.

Any ideas?

Collapse
 
raman_andryianau profile image
Raman CreativeIT

A great useful post!