Sunday, April 12, 2020

what's jsx

A: html inside javascript

how to render component to dom

A: ReactDOM.render(<App />, document.getElementById('app'));

no public src folder created after using create-react-app

A: Try with these steps :
  1. npm rm -g create-react-app
  2. npm install -g create-react-app
  3. npx create-react-app my-app

No comments:

Post a Comment