Put in order · JavaScript and React course · Module 1: React Basics

React import structure

Arrange the correct import syntax for the React library:

Items to put in order

  • React
  • 'react'
  • from
  • import
Show the answer

Correct order:

  1. import
  2. React
  3. from
  4. 'react'