How do I connect my index.html to App.js (React)?
<div class="content"> <form action="v2/v2.html" class="form"> <label for="user">Nama</label> <input type="text" name="user" id="user" /> <button type="button" id="load-app">Load App</button> </form> </div> <script src="v3-website/src/App.js"></script>
So when I click the button I want it to go directly to App.js Can someone tell me how to do this?
I used anchor
tag but it doesn't work
Yes, you can use Javascript
CustomEvent
to communicate between React virtual DOM and Javascript real DOM.Please refer to the following code snippet.