I'm a self-taught dev focused on websites and Python development.
My friends call me the "Data Genie".
When I get bored, I find tech to read about, write about and build things with.
I'm a self-taught dev focused on websites and Python development.
My friends call me the "Data Genie".
When I get bored, I find tech to read about, write about and build things with.
I'm a self-taught dev focused on websites and Python development.
My friends call me the "Data Genie".
When I get bored, I find tech to read about, write about and build things with.
In a Node app that is accessible in the browser, typically you have index.html which has:
And you would use Node to install and bundle dependencies and convert TypeScript etc. to plain JS and output as a single main.js or index.js file.
For a simple project, the main JS file could be the file as you wrote it, without transformation
I still don't understand. If I run
live-server
, will that allow Node to run inindex.html
?See comment
I recommend first learning node
See for example the React tutorial for adding React to an HTML page.
reactjs.org/docs/add-react-to-a-we...
You don't even need any JS files if start really simple but it will be easier to manage as multiple files.