React Getting Started
Run and Check
Run the React Application with this command:
A new browser window will pop up, if it does't then go on http://localhost:3000/
. Check if it is showing the same page:
If it's the same page then you are good to go!
Hello World
For this first you need to navigate to src/App.js
, it will look like:
Whatever you put in return will be rendered as HTML on the page, you can change it like:
Note: Remember to wrap whole return value in an HTML element as you can't return multiple elements but you can return multiple elements in one element.
Page would look like this:
0 Comments