I have a Wordpress site using a generic theme. I made React app I would like to use as a frontpage of my site. Already collected data using REST API. How can I integrate my bundle.js into existing Wordpress page?
相关问题
- How to toggle on Order in ReactJS
- Refreshing page gives Cannot GET /page_url in reac
- Display product ACF field value in Woocommerce tra
- Adding a timeout to a render function in ReactJS
- React Native Inline style for multiple Text in sin
相关文章
- wordpress新增页面如何个性化设置
- Why would we use useEffect without a dependency ar
- Is it possible to get ref of props.children?
- select query in wordpress
- Stateless function components cannot be given refs
- React testing library: Test attribute / prop
- React/JestJS/Enzyme: How to test for ref function?
- Material-UI [v0.x] RaisedButton on hover styles
I think you can use shortcode like this [my_shortcode] in some wordpress page.
Then you need to implement it in your plugin (or new plugin if you have no plugins).
just add the following
In your my_shortcode_handler you can serve the html,js,css of your React App By using some WP functions like: