Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying React Key Concepts
  • Table Of Contents Toc
  • Feedback & Rating feedback
React Key Concepts

React Key Concepts - Second Edition

By : Maximilian Schwarzmüller
4.8 (6)
close
close
React Key Concepts

React Key Concepts

4.8 (6)
By: Maximilian Schwarzmüller

Overview of this book

Maximilian Schwarzmüller is a bestselling instructor who has helped more than three million students worldwide learn how to code. His bestselling React video course, “React – The Complete Guide”, has over nine hundred thousand students on Udemy. Max has written this quick-start reference that distills the core concepts of React. Simple explanations, relevant examples, and step-by-step derivations make this guide the ideal resource for busy developers. In this second edition, Max guides you through changes brought by React 19, including the new use() hook, form actions, and how to think about React on the server. This book will support you through your next React projects in giving you a behind-the-scenes understanding of the framework – whether you've just finished Max's video course and are looking for a handy reference, or you’re using a variety of other learning materials and need a single study guide to bring everything together. You’ll find full solutions to all end-of-chapter quizzes and exercises in the book’s GitHub repository.
Table of Contents (21 chapters)
close
close
19
Other Books You May Enjoy

Introducing Custom Hooks

Before starting to build custom Hooks, it’s very important to understand what exactly custom Hooks are.

In React apps, custom Hooks are regular JavaScript functions that satisfy the following conditions:

  • The function name starts with use (just as all built-in Hooks start with use: useState(), useReducer(), etc.).
  • The function calls another React Hook (a built-in one or a custom one—doesn’t matter).
  • The function does not just return JSX code (otherwise, it would essentially be a React component), though it could return some JSX code—as long as that’s not the only value returned.

If a function meets these three conditions, it can (and should) be called a custom (React) Hook. So, custom Hooks are really just normal functions with special names (starting with use) that call other (custom or built-in) Hooks and that do not (just) return JSX code. If you try to call a (custom or built-in) Hook...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
React Key Concepts
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon