Contenido del Curso
React Mastery
React Mastery
1. Fundamentals of React and Component-Based UI
What Is React and Why Use It?Comparing SPAs and MPAs in Web DevelopmentHow React Works with the Virtual DOMIntroducing JSX for Writing HTML in JavaScriptBuilding Complex UI with JSX Rendering Elements in ReactChallenge: Render an Element in ReactUnderstanding React ComponentsPassing Data with Props in ReactChallenge: Create Functional ComponentsConditional Rendering in ReactChallenge: Implement Conditional Rendering – Chat NotificationChallenge: Implement Conditional Rendering – Bank AlertRendering Collections of Data in ReactChallenge: Display Data Collections in ReactReact Fundamentals Wrap-Up
2. Styling Techniques in React Applications
Introduction to Styling in ReactUsing Inline Styles in ReactApplying Inline Styles in PracticeChallenge: Use Inline Styles in a React ComponentStyling React Components with External CSSApplying External CSS in PracticeChallenge: Apply External CSS to a React AppUsing CSS Modules for Scoped Styling in React Organizing File and Folder Structures for StylesChallenge: Use CSS Modules in React Styling Techniques in React Wrap-Up
3. React Hooks and Context for State Management
Introduction to React Hooks and ContextManaging State with the useState HookChallenge: Toggle Visibility with useStateWorking with References Using the useRef HookChallenge: Build a Controlled Form ComponentHandling Side Effects with the useEffect HookChallenge: Fetch and Display Data with useEffectOptimizing Performance with the useMemo HookChallenge: Implement a Car List Filter with useMemoSharing State Across Components with ContextUsing Context in a Real-World ScenarioChallenge: Build a World of Astronomy App with ContextReact Hooks and Context Wrap-Up
React Project Setup Wrap-Up
Follow these steps to develop a React app on your local machine:
Install Node.js and npm:
- Visit the official Node.js website at https://nodejs.org;
- Download the installer for your operating system and follow the installation instructions to install Node.js and npm.
Install a Code Editor:
- Choose a code editor that suits your preference, such as Visual Studio Code;
- Install the code editor on your computer;
- This code editor will be your tool for writing React code.
Create a Project Folder:
- Create an empty folder on your computer to store your React project;
- This folder will serve as the root directory for your project.
Open the Code Editor:
- Launch the code editor of your choice;
- Navigate to the project folder you created in step 3;
- This will allow you to start working on your React project within the code editor.
Open the Terminal:
- Within the code editor, open the terminal or command line interface;
- This is where you'll run commands to set up and manage your React project.
Set Up the Project:
- In the terminal, run the command
npx create-react-app .
; - This command initializes a new React project using the Create React App tool.
Start the Live Page:
- Run the command
npm start
once the project is created; - This starts the development server and opens a live preview of your React app in the browser.
Customize the Project:
- Open the
src
folder within your project directory; - You can delete all default files created by Create React App;
- Build your React components, add styles, and implement functionality within the
src
folder.
Happy Coding!
Following these steps, you'll have a basic React project set up and ready for development. You can now start building your React components, styling your app, and adding functionality as needed for your project.
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 4. Capítulo 6