Tutorials
Example
Features Efficiently write slides in Markdown 3-in-1: Create, Present, and Publish your slides Supports speaker notes Mobile friendly slides Controls Next: Right Arrow or Space Previous: Left Arrow Start: Home 211 Finish: End Overview: Esc Speaker notes: S Fullscreen: F Zoom: Alt + Click PDF Export Code Highlighting Inline code: variable
Last updated on Aug 3, 2023
React 001 -- Component and Props
π React Roadmap The goals for Phase 2: Create a static frontend site with components and props (DOM Manipulation) Use state and events to make your site dynamic (Event Handling)
Last updated on Aug 17, 2023
React 002 -- State and Events
State and Events β Objectives Add event handlers to elements in React Use the useState hook to create state variables Create event handler callbacks that manipulate state Trigger re-renders by setting state Distinguish between props and state π Agenda Handle events and introduce state by creating a click counter Show that setState is asynchronous Using setState with value vs function Deliverables Toggle Dark Mode Button Text on click Exercise Add a ’like’ button to each project card Filter / search by project name Handling events in vanilla JS In vanilla JS, our steps for handling events looked like this: // 1.
Last updated on Aug 3, 2023
React 003 -- Information Flow
React Information Flow β Objectives Define the term βlifting stateβ Revisit our component hierarchy and describe the Flow of Information Decide which components should have state
Last updated on Aug 23, 2023
React 004 -- Form
React Forms π β Objectives Explain why we use controlled forms (vs uncontrolled forms) Implement a controlled form Use form data to update state in a parent component
Last updated on Aug 24, 2023
React 005 -- Side Effects and Data Fetching
Side Effects and Data Fetching β Objectives Explain what a side effect is Observe how React manages side effects with the useEffect hook Observe how to use the useEffect hook to fetch data on page load Observe how to send a POST request via form Review changing parent state Deliverables Persist the new project upon the ProjectForm submission Implement useEffect in App component to load projects Demonstrate the order of operations between rendering a component and running the side effect Demonstrate the unmounting and cleanup phase of a component through useEffect What to know before discussing side effects?
Last updated on Aug 9, 2023
React 007 -- Client Side Routing
Client Side Routing π₯ π» β Objectives Understand the difference between server side routing and client side routing Create a multi-page SPA Utilize the most common react-router components to build a SPA: BrowserRouter, Routes, Route, and Link Use custom hooks like useParams and useHistory to access the state of the router Use the history object to navigate pages Create dynamic routes and use params How Does Server-Side Routing Work for Non-React Websites?
Last updated on Aug 15, 2023