re: You don’t always need to import React VIEW POST

TOP OF THREAD FULL DISCUSSION
re: And so if we now start to use Hooks avoiding the use of ES6 classes can we skip importing React altogether? hehe :D
 

Hooks methods such as useEffect, useState, etc are from React so one would still import from 'react' 😉.

 

Yeah I figured that right after I hit "Submit" and I was like "meeehh I'm not going to edit that now" ahaha silly me

code of conduct - report abuse