JSX
Last updated
Was this helpful?
Last updated
Was this helpful?
React project directory structure:
Start and stop application:
Starting file:
src/index.js
Three components inside src/index.js
file:
1. Import React and ReactDom libraries
2. Create a React component
3. Take the react component and show it on the screen
Note:
document.querySelector("#root")
refers to element with id of “root” in file:
public/index.html