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?