So I've been working on a react website whose file system is like this:
- public:
- index.html
- second.html
- src:
- index.js
- second.js
- table.js
- forms.js
So I have a form and a table in the main page (index.js). One of the columns in the table contains the link to access the second page. And the second.html should be linked with second.js. I tried using
<script src="second.js></script>
on the HTML page but it didn't work. I even tried ../src/second.js in the script tag. Can anyone point out what is the problem here and what can be done about it?
Thank you