V
V
Verstatel30002019-08-17 22:37:29
React
Verstatel3000, 2019-08-17 22:37:29

What is the best way to use React on a static site?

I need to write several small React applications and embed them in a static site, how to do it "Correctly"?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Spirin, 2019-08-18
@Verstatel3000

const myAppRoot = document.getElementById(“my-app”);
ReactDOM.render(<MyApp />, myAppRoot);

D
Dimonchik, 2019-08-18
@dimonchik2013

in an IDE or just a code editor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question