Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

React’ must be in scope when using JSX react/react-in-jsx-scope

//React js throws This error, when either we forget to include React in our script
or make a spelling mistake.
//Wrong way
import react from 'react'
//Correct way
import React from 'react'
Source by akashmittal.com #
 
PREVIOUS NEXT
Tagged: #scope #JSX
ADD COMMENT
Topic
Name
9+3 =