Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] No React import in App.js #4

Open
9christine opened this issue Nov 6, 2021 · 2 comments
Open

[bug] No React import in App.js #4

9christine opened this issue Nov 6, 2021 · 2 comments

Comments

@9christine
Copy link

9christine commented Nov 6, 2021

React import necessary in App.js.
Screen Shot 2021-11-06 at 16 47 50

@9christine
Copy link
Author

import twitterLogo from './assets/twitter-logo.svg';
import './App.css';
import React from 'react';

@dawksh
Copy link

dawksh commented Nov 7, 2021

since react 17, it is not necessary to import react, it automatically injects that line while compiling the jsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants