The
React
Workshop

Work through engaging exercises and activities and gain practical skills to make your web applications function effortlessly with the help of React.

Get Started with React Today

You'll be up and running with React in no time at all.

  • $39.99

    $39.99The React Workshop

    Unlock one year of full, unlimited access!
    Buy Now

Learning Made Simple

Nobody likes going through hundreds of pages of dry theory, or struggling with uninteresting examples that don’t compile. We've got you covered. Any time, any device.

  • Learn by doing real-world development, supported every step of the way with step-by-step examples and expert screencasts.

  • Become a verified practitioner and earn an authenticated digital certificate from Packt upon successful completion.

  • Manage your learning based on your personal schedule, with content that lets you pause and resume your progress at will.

A Smarter Way to Learn React

A step-by-step, focused approach to getting up and running with real-world React in no time at all.

The React Workshop is ideal if you're looking for a structured, hands-on approach to get started with React.
Buy Now

Course Curriculum

An A to Z tour of React.

  • 2. Dealing with React Events

    • Overview
    • Designing the State of Our Application
    • Exercise 2.01: Writing the Starter State for Our Code
    • Event Handlers in React
    • Exercise 2.02: Writing Our First Event Handler
    • onBlur
    • Exercise 2.03: Building our Username Validator
    • Exercise 2.04: Using Alternative Class Declarations to Avoid Binds
    • Form Validation in React
    • Exercise 2.05: Creating a Validation for Input Fields
    • Activity 2.01: Create a Blog Post Using React Event Handlers
    • Activity 2.01: Create a Blog Post Using React Event Handlers
    • Summary
  • 3. Conditional Rendering and for Loops

    • Overview
    • Conditional Rendering
    • Exercise 3.01: Building Our First App Using Conditional Rendering
    • Nested Conditional Rendering
    • Exercise 3.02: Building a Conditional Quiz App
    • Rendering Loops with React
    • Exercise 3.03: Refining Our Quiz Display with Loops
    • Activity 3.01: Building a Board Game Using Conditional Rendering
    • Activity 3.01: Building a Board Game Using Conditional Rendering
    • Summary
  • 4. React Lifecycle Methods

    • Overview
    • Overview of the Component Lifecycle
    • Exercise 4.01: Implementing Lifecycle Methods
    • The Mount Lifecycle
    • Exercise 4.02: Conditional Rendering and the Mount Lifecycle
    • render()
    • Exercise 4.03: Simulating a Slow Ajax Request and Prerendering Your Component
    • The Unmount Lifecycle
    • Exercise 4.04: Messaging on Unmount
    • Activity 4.01: Creating a Messaging App
    • Activity 4.01: Creating a Messaging App
    • Summary
  • 5. Class and Function Components

    • Overview
    • Introduction to Thinking with React Components
    • Exercise 5.01: Creating Profile Component as a Class Component
    • Function Component
    • Exercise 5.02: Changing the Loader Component as a Function Component
    • Differences between Class and Function Components
    • Activity 5.01: Creating a Comments Section
    • Activity 5.01: Creating a Comments Section
    • Summary
    • Survey I
  • 6. State and Props

    • Overview
    • State in React
    • Exercise 6.01: Building an App to Change the Theme
    • Props in React
    • Exercise 6.02: Creating a Modal Screen
    • Activity 6.01: Creating a Products App Page
    • Activity 6.01: Creating a Products App Page
    • Summary
  • 7. Communication between Components

    • Overview
    • Getting Started
    • Exercise 7.01: Sending and Receiving Objects as Props from the Parent
    • The {children} Prop
    • Exercise 7.02: Sending Child Elements Using the children Prop
    • Sending and Receiving an Array through Props
    • Exercise 7.03: Sending, Receiving, and Displaying an Array from a Parent to a Child
    • Passing Data to a Child Component Multiple Levels Down
    • Exercise 7.04: Splitting into Smaller Components
    • Passing a Component through a Prop
    • Exercise 7.05: Creating a Photo Function Component
    • Higher-Order Components
    • Exercise 7.06: Creating a HOC Function That Can Be Called with DonationColor
    • Render Props
    • Exercise 7.07: Adding donationColor
    • Passing Data from Children to a Parent
    • Exercise 7.08: Passing Data from a Child to a Parent Component
    • Passing Data Between Components at Any Level
    • Exercise 7.09: Adding the addList Callback Function
    • The Context API
    • Exercise 7.10: Creating the Component Using the React Context API
    • Activity 7.01: Creating a Temperature Converter
    • Activity 7.01: Creating a Temperature Converter
    • Summary
  • 8. Introduction to Formik

    • Overview
    • Uncontrolled Components
    • Exercise 8.01: Creating Our First Uncontrolled Form Component
    • Controlled Components
    • Exercise 8.02: Converting Our Form Component from Uncontrolled to Controlled
    • Introduction to Formik
    • Exercise 8.03: Adding Field Validators
    • Controlling When Formik Runs Validation Rules
    • Exercise 8.04: Controlling Schema Validation Phases
    • Submitting a Form
    • Activity 8.01: Writing Your Own Form Using Formik
    • Activity 8.01: Writing Your Own Form Using Formik
    • Summary
  • 9. Introduction to React Router

    • Overview
    • Exercise 9.01: Building a Basic Router using the Location API
    • Basics of React Router
    • Exercise 9.02: Implementing a Switch Router
    • Adding Params to Your Routes
    • Exercise 9.03: Adding Params to Routes
    • Adding Page Not Found for Routes
    • Exercise 9.04: Adding a NotFound Route
    • Nesting Routes
    • Exercise 9.05: Nested Routes and the Link Component
    • Activity 9.01: Creating an E-Commerce Application
    • Activity 9.01: Creating an E-Commerce Application
    • Summary
  • 10. Advanced Routing Techniques: Special Cases

    • Overview
    • Exercise 10.01: Creating URL Parameters
    • Matching Unknown Routes with 404 Pages
    • Exercise 10.02: Creating Unknown Routes
    • Rendering Nested Routes
    • Exercise 10.03: Creating Nested Routes
    • Protecting Routes
    • Exercise 10.04: Protected Routes
    • Preventing Inbound Transitions
    • Activity 10.01: Creating Authentication Using Routing Techniques
    • Activity 10.01: Creating Authentication Using Routing Techniques
    • Summary
    • Survey II
  • 11. Hooks – Reusability, Readability, and a Different Mental Model

    • Overview
    • Exercise 11.01: Displaying an Image with the Toggle Button
    • useEffect – from Life Cycle Methods to Effect Hooks
    • Exercise 11.02: Creating a Login State Using useEffect
    • Comparing useEffect Hooks with Life Cycle Methods
    • Comparing Hooks to Render Props
    • Activity 11.01: Creating a Reusable Counter
    • Activity 11.01: Creating a Reusable Counter
    • Summary
  • 12. State Management with Hooks

    • Overview
    • useState Hook: A Closer Look
    • Exercise 12.01: Array Manipulation Using Hooks
    • Equality and Immutability for Objects in React
    • Exercise 12.02: useReducer with a Simple Form
    • Effects with Cleanup
    • Activity 12.01: Creating a Chat App Using Hooks
    • Activity 12.01: Creating a Chat App Using Hooks
    • Summary
  • 13. Composing Hooks to Solve Complex Problems

    • Overview
    • Context API and Hooks
    • Exercise 13.01: Adding Context to the ShoppingCart App
    • Props and Context
    • Exercise 13.02: Creating Context Using useContext and useEffect
    • Activity 13.01: Creating a Recipe App
    • Activity 13.01: Creating a Recipe App
    • Summary
  • 14. Fetching Data by Making API Requests

    • Overview
    • RESTful API
    • Exercise 14.01: Requesting Data Using XMLHttpRequest
    • Fetch API
    • Exercise 14.02: Requesting Data Using the Fetch API
    • Axios
    • Exercise 14.03: Requesting Data Using Axios
    • Comparison of XMLHttpRequest, the Fetch API, and Axios
    • Exercise 14.04: GET and POST Requests with Postman
    • Exercise 14.05: PUT, PATCH, and DELETE Requests with Postman
    • Making API Requests in React
    • Exercise 14.06: Installing React Boilerplate and Axios
    • Testing the NASA API with Postman
    • Exercise 14.07: Testing the Endpoint with Postman
    • Fetching Data with React
    • Exercise 14.08: Creating a Controlled Component to Fetch Data
    • Activity 14.01: Building an App to Request Data from Unsplash
    • Activity 14.01: Building an App to Request Data from Unsplash
    • Summary
  • 15. Promise API and async/await

    • Overview
    • What Is the Promise API?
    • Exercise 15.01: Fetching Data through Promises
    • What Is async/await?
    • Exercise 15.02: Converting submitForm() to async/await
    • async/await within Loops
    • Activity 15.01: Creating a Movie App
    • Activity 15.01: Creating a Movie App
    • Summary
    • Survey III
  • 16. Fetching Data on Initial Render and Refactoring with Hooks

    • Overview
    • Fetching Data upon Initial Rendering
    • Exercise 16.01: Fetching Popular Google Fonts on Initial Rendering
    • Fetching Data on Update
    • Exercise 16.02: Fetching Trending Google Fonts
    • React Hooks to Fetch Data
    • Exercise 16.03: Refactoring the FontList Component
    • More Refactoring with Custom Hook
    • Exercise 16.04: Refactoring a FontList Component with a Custom Hook
    • Activity 16.01: Creating an App Using Potter API
    • Activity 16.01: Creating an App Using Potter API
    • Summary
  • 17. Refs in React

    • Overview
    • Exercise 17.01: Creating Custom Upload Buttons with Refs
    • Ways of Creating React Refs
    • Exercise 17.02: Measuring the Dimensions of a div Element in a Class-Based Component
    • Exercise 17.03: Measuring the Element Size in a Functional Component
    • Forwarding Refs
    • Exercise 17.04: Measuring Button Dimensions Using a Forwarded Ref
    • Activity 17.01: Creating a Form with an Autofocus Input Element
    • Activity 17.01: Creating a Form with an Autofocus Input Element
    • Summary
  • 18. Practical Use Cases of Refs

    • Overview
    • Recap of React Refs Basics
    • Exercise 18.01: Cloning an Element and Passing It an onClick Prop
    • The createPortal function in ReactDOM
    • Exercise 18.02: Creating a Global Overlay Using Portals
    • Activity 18.01: Portable Modals Using Refs
    • Activity 18.01: Portable Modals Using Refs
    • Summary
  • Hack Your Brain

    We've applied the latest pedagogical techniques to deliver a truly multimodal experience. It'll keep you engaged and make the learning stick. It's science!

  • Build Real Things

    Nobody likes wasting their time. We cut right to the action and get you building real skills that real, working developers value. The perfect approach for a career move.

  • Learn From Experts

    We've paired technical experts with top editorial talent. They've worked hard to deliver you the maximum impact for each minute you spend learning. It's our secret sauce.

Join Over 85,000 Satisfied Students

Here is what they have to say about Packt workshops:

Amazing

Federico Patito

This course is excelent, with this course you learn a lot of topics and each topic has some exercises that are very u...

Read More

This course is excelent, with this course you learn a lot of topics and each topic has some exercises that are very useful.

Read Less

Very detailed workshop with good excercises and activites

Ajijul Hakim Abid

Very good in-depth workshop in python. Goes over almost every topics but some topics could have a more detailed expla...

Read More

Very good in-depth workshop in python. Goes over almost every topics but some topics could have a more detailed explanation. Would't recommend for someone totally new to programming.

Read Less

Great Introductory Course

mohammad nazeri

This course covers basic Python syntax, how to develop software in python, how to work in a team, and an introduction...

Read More

This course covers basic Python syntax, how to develop software in python, how to work in a team, and an introduction to data science and machine learning with Python.

Read Less

An excellent way to learn Python

Juan Alberto Cañero Tamayo

I like the methodology applied to this workshop, it starts from the basic and a good explanation of the subjects plus...

Read More

I like the methodology applied to this workshop, it starts from the basic and a good explanation of the subjects plus a plenty of examples helps you to understand Python.

Read Less

5 Stars for the content !

Mahesh Deshpande

I belong to mechanical background and started leaning any kind of programming in my life with this course. This is to...

Read More

I belong to mechanical background and started leaning any kind of programming in my life with this course. This is too good for a beginner like me. The content is properly given and exercise and activities are also good. Video explainations help a lot ! The only problem I faced was the kernel busy problem in the Jupyter IDE. Otherwise I found Jupyter most user friendly as compared to other IDEs. Thanks Packt for this course !

Read Less

The most satisfying python workshop i ever attended!

Sanket Gadge

I have attended many python workshops, but this one is really great, the content is super awesome. Actually all the c...

Read More

I have attended many python workshops, but this one is really great, the content is super awesome. Actually all the courses workshops i ever attended they never taught me (for ex. say logging) everything in python, but this workshop even covers the python from beginner to advanced. With activities included, this workshop made me think more and more rather than just going through the content and reading text and videos. I learned a ton here. Thank you for all the coaches who creating this extra ordinary content.

Read Less

DATA SCIENCE Workshop

LALIT JADHAV

This course format and is very easily understandable. Workshop Certificate structure are very wonderful. Thanks a lot...

Read More

This course format and is very easily understandable. Workshop Certificate structure are very wonderful. Thanks a lot for Packt👈

Read Less

Excellent course !!

Luiz Pellegrini

Very well structured, with good examples and a rational sequence !! An additional feature is that it is updated and d...

Read More

Very well structured, with good examples and a rational sequence !! An additional feature is that it is updated and designed run on Jupyter Notebooks!!

Read Less

Many disciplines in Data Visualization

Thomas Hopf

Taking into account Python and therefore Jupyter Notebooks as a "platform" isn't a problem at all, since it's common....

Read More

Taking into account Python and therefore Jupyter Notebooks as a "platform" isn't a problem at all, since it's common. Setting up by "cloning" a github repository was very easy. The toolboxes for visualization in focus are Matplotlib (famous), Seaborn, Geoplotlib. The order makes sense and in order to get Python basics pandas and numpy are also introduced first. Finally Bokeh is introduced as an interactive tool with no deep-dive but explaining the concept and options. At the end there will be a summary. The quizzes are not that easy in my opinion and you really should follow every topic and do the exersices, activities. Thanks for this perfect designed workshop course and the good example datasets. Greetz, Tommy

Read Less

Simple and straight-forward intro

Geoffrey Letsoalo

The introduction is simple and very informative in terms of estalishing and getting the development environment going...

Read More

The introduction is simple and very informative in terms of estalishing and getting the development environment going. Very intuitive!

Read Less

Different and made for people like me

Muizz Lateef

I have been watching tutorial videos for over 6 months now and not really confident yet, but few minutes into this te...

Read More

I have been watching tutorial videos for over 6 months now and not really confident yet, but few minutes into this text approach and i am already getting the whole idea

Read Less

Excellent Course Overall

Jon Hill

Had some familiarity with Python before starting the course and working through the exercises and activities, certain...

Read More

Had some familiarity with Python before starting the course and working through the exercises and activities, certainly picked up some things that I had missed before and filled some gaps in my knowledge. Course needs a bit of proof-reading as a number of errors sprinkled throughout. Found the Activities needed a little more guidance rather than being vague but worked out in the end. Overall excellent course, especially for those beginning with Python as covers a full spectrum of Python requirements. Many thanks

Read Less

Review for the Python Workshop

Samapriya Trivedi

This workshop provides one of the best educative content for the Python available on internet. Got to know a lot abou...

Read More

This workshop provides one of the best educative content for the Python available on internet. Got to know a lot about Python and it's working in a very elaborate manner.

Read Less

Learning Python is Easier

Jayabalan Ravichandiran

Python concepts and using those in practice , made easier to know about python. Core concepts are explained in detail...

Read More

Python concepts and using those in practice , made easier to know about python. Core concepts are explained in detail . The activities enables to play & know python more than reading through only concepts . The Best of python course is here ....

Read Less

Real Python lover... The Packt.

Jonty Rhodes

What can I say this website is very good for beginners. Although this website enhancing my programming experience al...

Read More

What can I say this website is very good for beginners. Although this website enhancing my programming experience also. keep it up. May Allah bless you.

Read Less

Attila Sebők's review

Attila Sebők

A Python Workshop kellemes meglepetés volt számomra. Tetszett a tema csoportosítása. Sokat tanultam a Workshopból. Am...

Read More

A Python Workshop kellemes meglepetés volt számomra. Tetszett a tema csoportosítása. Sokat tanultam a Workshopból. Ami lehetne jobb: naprakész hibajavítás a leckékben és a tesztekben.

Read Less

Wonderful

Varun Kanthety

This is a wonderful course to dive deeply into the main features of JavaScript. Without any hesitation, I highly reco...

Read More

This is a wonderful course to dive deeply into the main features of JavaScript. Without any hesitation, I highly recommend this workshop to learn JavaScript.

Read Less

Good course on JavaScript... Super Easy Language, Every e...

Kuntal Bhowmick

The Workshop is really good and covers a lot of content starting from basics till advance. The Workshop explain ho...

Read More

The Workshop is really good and covers a lot of content starting from basics till advance. The Workshop explain how things work by using simple language, so you don't feel like you're just copying code—you're actually understanding what you're writing, and why. In particular, I appreciate this JavaScript Workshop because of the exercise and the activities given for each and every concept. The workshop also show students how to problem-solve like a developer: what to type into Google when you're stuck, how to get to the bottom of an error message, etc. I think the understanding the core concept was very beneficial and think it would help me become a better developer in the future. Amazing breakdowns that really help fill in knowledge gaps. Great exercises with fully detailed explanations. I am satisfied with the course. I highly recommend this course to anyone who wants to learn JS(JavaScript). Edit: I want to add another thing. The quiz given after every section is very important. It gives me how much I understand the section. the quiz also displays the explanation of each answer along with whether my selected answer is right or wrong.

Read Less

Programming fundamentals

Oteri Eyenike

I was able to understand the conditional statement, data types, the object of properties and I like every aspect of t...

Read More

I was able to understand the conditional statement, data types, the object of properties and I like every aspect of the course.

Read Less

Content

Adedeji Adelanwa

It is quite informative and helpfully. A real refresher and eye opener for me. Though there are a few typos and sente...

Read More

It is quite informative and helpfully. A real refresher and eye opener for me. Though there are a few typos and sentence misplacement and also video. I don't mind helping out in correcting the errors

Read Less

A must for those aiming to become true web developers

Jose B

Despite minor aspects with tests (the one focused on PHP), it is a very good way to teach yourself JavaScript coverin...

Read More

Despite minor aspects with tests (the one focused on PHP), it is a very good way to teach yourself JavaScript covering the latest ECMA standards,

Read Less

One of the best place to learn

NAGA SANKARA SAI KARTHIK MUKKU

This workshop course is not a pack of subject but also helps in connecting real-world and also provide wide-range of ...

Read More

This workshop course is not a pack of subject but also helps in connecting real-world and also provide wide-range of concepts which make this workshop stand out of the box

Read Less

Great workshop

Djoko Cahyo Utomo Lieharyani

This workshop gives a provide broad insight into python, more to practical exercises and activities. There are some p...

Read More

This workshop gives a provide broad insight into python, more to practical exercises and activities. There are some problems tough, like some wrong script, redundant question, and no clear definition on some part (around 15% of 100% I guess), but the discussion part is helpful, coz sometimes with reading discussion part make some problem clear. My suggestion is to make the workshop perfect by validating the disscussion part.

Read Less

Excellent!

Marcos Souza

I was very surprised by the quality of this course. Its well organized, full of examples on the subjects it is teachi...

Read More

I was very surprised by the quality of this course. Its well organized, full of examples on the subjects it is teaching, relevant quizzes and exercises, and even videos. Its by far the best free course i've ever seen.

Read Less

Course content

Edward Amankwah

A great way to review the length and breath of Python language. It introduces more concepts that can be pursued furth...

Read More

A great way to review the length and breath of Python language. It introduces more concepts that can be pursued further which I really like, especially for data science.

Read Less

Get Verified

Complete The React Workshop to unlock your very own Packt certificate.

Unlock your own digital certificate by completing all activities. Designed to be easy to share with potential employers on LinkedIn, as well as other popular social media channels.

Take A Step Forward

There has never been a better time to start learning React.

  • $39.99

    $39.99The React Workshop

    Unlock one year of full, unlimited access!
    Buy Now

Already Know React?

Don't worry, we've got your back with other languages and frameworks too!

Show me my options!