Answer the question
In order to leave comments, you need to log in
Removing page markup to .html file in react?
Is it even possible to do this?
(I only learned about developing web applications with node.js two days ago, so don't beat me with sticks for such elementary questions)
Answer the question
In order to leave comments, you need to log in
This is theoretically possible but not absolutely necessary.
Firstly, react does not use HTML, and if you write exactly HTML, it simply will not work. You will have to write the same JSX simply in a separate file to which you for some reason give the html extension.
Think about what problem you are trying to solve and is it a problem?
If you don't like the idea of mixing code and markup - look at vue for example, there is a separate template and "like html".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question