Sign in
Log inSign up

Difference between React.Component and Component?

Arjun S Kumar's photo
Arjun S Kumar
·Jul 10, 2017

Hey,

Can someone help me understand the difference between the following codes

import React from 'react';
export default class App extends React.Component {
}

and

import React, { Component } from 'react';
export default class App extends Component {

}

Also, will this have any influence if I'm using Webpack 3.0 scope hoisting feature?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct