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
Challenge: Render an Element in React
Note
All challenges may appear broken by default since they contain whitespace sections where you need to input the necessary code. Once you correctly fill in these whitespace sections, the completed code will be displayed on the live page.
Additionally, every challenge features two buttons:
Hint
andSolution
. Clicking onHint
provides small hints for the current challenge, while selecting theSolution
button opens a new tab with the completed challenge.
How to work with Code Sandbox
Task: Creating a Product Card
Create the product card and render it to the DOM. The product card needs:
- The product image (
img
element).src
attribute must be equal to theimageUrl
variable.alt
attribute must be equal to the stringComputer
.width
attribute must be equal to the256
.
- The product title (
h3
element).- Its text content must be
Computer
.
- Its text content must be
- The product price (
span
element).- Its text content must be
Price: $129.99
.
- Its text content must be
- The product description (
p
element).- Its text content must be
New Model
.
- Its text content must be
- The
src
attribute must contain theimageUrl
variable as a value. Use curly braces{}
. - The
alt
attribute must contain the string"Computer"
as a value. Enclose it in double quotes. - The
width
attribute must contain the number256
as a value. Use curly braces{}
. - Ensure that the
h3
,span
, andp
elements have correct values.
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 7