at the top of my Create React App
created file App.js
is the line import React, { Component } from 'react';
Won't React
import everything already... and if yes then why is { Component }
needed?
Importing Component
separately allows you to use Component
rather than React.Component
. It's a convenience.