Steps to create React Application
Step 1: Create a React application with the following command:
npx create-react-app my-app
Step 2: Move to the project folder my-app with the following command:
cd my-app
How to write comments in ReactJS ?
To write comments in React JS we use the javascript comments and JSX object. It helps in adding useful information about the code and comment-out and ignore the extra code in the program.
Writing comments in React is done in these ways.
Table of Content
- Using JavaScript comments
- Using JSX object
Contact Us