Appendix
2. Understanding React Components & JSX
Activity 2.1: Creating a React App to Present Yourself
Solution:
Perform the following steps to complete this activity:
- Create a new React project by running npx create-react-app my-app. You can replace my-app with any name of your choice, and you can run this command in any fitting place on your system (e.g., on your desktop). Start the development web server by running npm start inside the created project folder.
- Open the project with any code editor of your choice—for example, with Visual Studio Code (https://code.visualstudio.com/).
- Open the App.js file and replace the existing JSX code that is returned with JSX code that structures and contains the information about yourself that you ...
Get React Key Concepts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.