Experiment 10: ReactJS – Render HTML, JSX, Components – function & Class
Write a program to render HTML to a web page. Create a React Application Open Command Prompt / Terminal and run: npx create-react-app myapp cd myapp npm start Browser opens automatically at: http://localhost:3000 React is successfully installed! myapp ├── node_modules ├── public │ └── index.html ├── src │ ├── App.js │ ├── index.js │ └── App.css └── package.json index.html <!DOCTYPE html> <html> <head> <title>ReactJS – Render HTML</title> <!-- React CDN --> <script src="https://unpkg.com/react@18/umd/react.development.js"></script> <script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script> <!-- Babel --> <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> </head> <body> <h2>ReactJS Experimen...