React examples

Samples of code to study React web development

  • React
  • Examples

Elements vs components

#1

  • Components
  • Elements

Ways to write components

#2

  • Components

Conditional rendering

#3

  • JSX

Styling elements

#4

  • JSX
  • Styles

Change events on form elements

#5

  • Events
  • Forms

Requesting an API endpoint

#6

  • Async Requests

Understanding useEffect

#7

  • useEffect

Cleanup callback of useEffect

#8

  • useEffect

Creating custom hooks

#9

  • Async Requests
  • Custom Hooks