File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import * as React from 'react' ;
22import { HelloComponent } from './hello' ;
33import { NameEditComponent } from './nameEdit' ;
44import { SidebarComponent } from './sidebar' ;
Original file line number Diff line number Diff line change 1- import React from 'react' ;
2- import PropTypes from 'prop-types' ;
1+ import * as React from 'react' ;
2+ import * as PropTypes from 'prop-types' ;
33
44export const HelloComponent = ( props ) =>
55 < h2 > Hello user: { props . userName } !</ h2 > ;
Original file line number Diff line number Diff line change 1- import React from 'react' ;
1+ import * as React from 'react' ;
22import { render } from 'react-dom' ;
33import { App } from './app' ;
44
Original file line number Diff line number Diff line change 1- import React from 'react' ;
2- import PropTypes from 'prop-types' ;
1+ import * as React from 'react' ;
2+ import * as PropTypes from 'prop-types' ;
33
44export const NameEditComponent = ( props ) => (
55 < div >
You can’t perform that action at this time.
0 commit comments