Question · JavaScript and React course · Module 1: React Basics

One-way data flow

How does one-way data flow work in React?

Answer options

  • Data flows from a parent component to a child component through props
  • Data flows in both directions between components automatically
  • Data is shared globally and any component can modify it
  • Data flows from child to parent components
Show the answer

Correct answer:

  • Data flows from a parent component to a child component through props