Introduction
What is ReactJS?
React is an open-source JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies. React can be used as a base in the development of single-page or mobile applications.
Prerequisites
- Basic knowledge of React
- Visual Studio Code must be installed
- Node JS must be installed
Create ReactJS project
Step 1
The very first step is to create a new React.js project using the following command:
- npx create-react-app reactHideShow
Step 2
Open the newly-created project in Visual Studio code and install React bootstrap in this project using the following command:
- npm install bootstrap
Step 3
Now, open the index.js file and import Bootstrap.
- import 'bootstrap/dist/css/bootstrap.min.css';
Step 4
The next step is to open App.js and paste the below code:



Join the conversation! Your thoughts help the community grow.