DEV Community

Discussion on: How to use React inside a Wordpress application ?

Collapse
 
saiayyappa profile image
saiayyappaor • Edited

Julien was able to find alternate way. I used wp.element for loading react and react-dom instead of directly packaging it from create-react-app. We have to use wp-scripts instead from where wp.element comes from. Once using that we also have to load/enqueue wp.element where we init our plugin (php file where we register it as shortcode).
Seriously thanks for the input on where to get started.