Ex No: 5 | CLICK EVENT IN REACT.JS |
---|---|
Aim: | To design a React App that demonstrate the use of click event. |
Algorithm | |
Step1: Install Node Package Manager (npm) in the system. | |
Step2: Create react app using "npx create-react-app" in the terminal. | |
Step3: Alter the content of the “App.js” file to add the profile page. | |
Step4: Create App.css” file to store the css information. | |
Step5: Start the React App using "npm start". | |
Source Code | |
App.js
style.css
|
|
Result: | Thus a React App that demonstrates the uses of click event is implemented. |