Course Content
React Mastery
React Mastery
1. Introduction to React Fundamentals
What is React?SPAs vs. MPAs in Web DevelopmentHow React Works with the Virtual DOMIntroducing JSX in ReactCreating Complex JSX Elements Rendering Elements in ReactChallenge: Rendering ElementReact ComponentProps in ReactChallenge: Functional ComponentsConditional RenderingChallenge: Conditional Rendering - Chat NotificationChallenge: Conditional Rendering - Bank AlertRendering a Data CollectionChallenge: Rendering a Data CollectionIntroduction to React Section Sum-Up
2. Styling in React Apps
Introduction to Styling in ReactInline StylesInline Styles in PracticeChallenge: Inline StylesStyling with the CSS FileStyling with the CSS File in PracticeChallenge: Styling with the CSS FileStyling with the CSS ModulesFile Folder Structure OrganizationChallenge: CSS ModulesStyling in React Section Sum-Up
3. React Hooks and Context
Introduction: React Hooks and ContextuseState HookChallenge: Toggling VisibilityuseRef HookChallenge: Creating a Form ComponentuseEffect HookChallenge: Fetching and Displaying DatauseMemo HookChallenge: Car List FilteringContextContext in PracticeChallenge: World of Astronomy AppReact Hooks and Context Section Sum Up
Challenge: Rendering Element
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.
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 7