S
S
Spoon in the brain2019-03-05 16:41:42
HTML
Spoon in the brain, 2019-03-05 16:41:42

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

1 answer(s)
R
Robur, 2019-03-05
@vessels

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 question

Ask a Question

731 491 924 answers to any question