Conteúdo do 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
Organizing the Project Folder Structure
Step 3: Create the project folder
Now that we have all the necessary external tools, we can start creating the project. The task is to create a new empty folder specifically for the project, where nothing else will be stored.
Steps to follow:
- Choose a Location: Select a location on your machine where you want to create the project folder. It can be anywhere you prefer, such as your desktop or a specific directory;
- Create a New Folder: Right-click in the chosen location and select "New Folder" from the context menu;
- Name the Folder: Give the folder a meaningful name. This will serve as the root folder for your React project, so choose an informative and relevant name for your project's purpose. For example, you can name it
movies-app
,store-app
,posts-app
,learning-system-app
, etc.
For example let's create the empty folder with the name movies-app
.
Step 4: Open the Folder in Your Code Editor
To start working on the project, you need to open the movies-app
folder in your code editor, whether it's Visual Studio Code or another editor of your choice.
Follow these steps:
- Launch your code editor. In our example, we'll use Visual Studio Code (VS Code);
- Click on the explorer icon located in the top-left corner of the VS Code interface;
- Click the "Open Folder" button in the explorer panel;
- Look for the
movies-app
folder on the machine and select it. After completing these steps, you should see the folder name,movies-app
, displayed in your code editor's interface.
Now that your project folder is set up and opened in your code editor, you're ready to start building your React application!
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 4. Capítulo 3