syonip / blog-comments

0 stars 0 forks source link

embed-react-in-vanilla-js-website #14

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

How to Embed React Project in a Vanilla JS Website | Jonathan's Dev Blog

Why embed a react app into a vanilla JS / jQuery website? On a recent project I wanted to develop a react component, that had to integrate into a jQuery based website. Although it’s possible to just add react to a website without any toolchain as described in the React Docs, I…

https://www.learningsomethingnew.com/embed-react-in-vanilla-js-website

Ben-at-h commented 1 year ago

Hi Jonathan, I really like this article. Wondering if you could share the final repo? If not, maybe the final file structure?

syonip commented 1 year ago

Hi Ben glad you like it, here's the code: https://github.com/syonip/react-embedding-test/ Enjoy :)

Ben-at-h commented 1 year ago

Hi Jonathan. My project only looks for index.html in the public folder. I'm wondering how you managed to get it to look elsewhere when building it?

garudaonekh commented 2 months ago

Hi, will this still work if the react app have router?
I want to embed an ionic react weather app inside my ionic vanilla js. thus I want to know. if this will work?