1- import React , { Component } from 'react' ;
1+ import React , { Component } from 'react' ;
22import PropTypes from 'prop-types' ;
3- import { useMark } from './marks' ;
3+ import { useMark } from './marks' ;
44import toLoadable from "./loadable" ;
5- import { UIDConsumer } from "./context" ;
5+ import { UIDConsumer } from "./context" ;
66
77const isBrowser = ( typeof window !== 'undefined' ) ;
88const STATE_LOADING = 'loading' ;
99const STATE_ERROR = 'error' ;
1010const STATE_DONE = 'done' ;
1111
12- const FragmentNode = ( { children } ) => < div > { children } </ div > ;
12+ const FragmentNode = ( { children} ) => < div > { children } </ div > ;
1313FragmentNode . propTypes = {
1414 children : PropTypes . any
1515} ;
@@ -127,8 +127,8 @@ export class UnconnectedReactImportedComponent extends Component {
127127 } ;
128128
129129 render ( ) {
130- const { AsyncComponent, state } = this . state ;
131- const { LoadingComponent, ErrorComponent } = this . props ;
130+ const { AsyncComponent, state} = this . state ;
131+ const { LoadingComponent, ErrorComponent} = this . props ;
132132
133133 if ( state === STATE_LOADING && this . props . async ) {
134134 throw this . loadingPromise ;
@@ -139,7 +139,7 @@ export class UnconnectedReactImportedComponent extends Component {
139139 }
140140
141141 if ( AsyncComponent ) {
142- return < AsyncComponent { ...this . props . forwardProps } ref = { this . props . forwardRef } />
142+ return < AsyncComponent { ...this . props . forwardProps } ref = { this . props . forwardRef } />
143143 }
144144
145145 switch ( state ) {
@@ -194,8 +194,8 @@ UnconnectedReactImportedComponent.defaultProps = {
194194
195195const ReactImportedComponent = ( props ) => (
196196 settings . SSR
197- ? < UIDConsumer > { UID => < UnconnectedReactImportedComponent { ...props } streamId = { UID | 0 } /> } </ UIDConsumer >
198- : < UnconnectedReactImportedComponent { ...props } streamId = { 0 } />
197+ ? < UIDConsumer > { UID => < UnconnectedReactImportedComponent { ...props } streamId = { UID | 0 } /> } </ UIDConsumer >
198+ : < UnconnectedReactImportedComponent { ...props } streamId = { 0 } />
199199) ;
200200
201201ReactImportedComponent . propTypes = BaseProps ;
0 commit comments