I'm currently trying to understand some JavaScript code in an App.js file for my react native app. I want to know if the code of<AppLoading/> <View>
components are considered HTML code or JavaScript code?
export class App extends React.Component {
state = {
isLoadingComplete: false,
};
render() {
if (!this.state.isLoadingComplete && !this.props.skipLoadingScreen) {
return (
<AppLoading
startAsync={this._loadResourcesAsync}
onError={this._handleLoadingError}
onFinish={this._handleFinishLoading}
/>
);
} else {
return (
<View style={styles.container}>
{Platform.OS === 'ios' && <StatusBar barStyle="default" />}
<AppNavigator />
<View/>
);
}
}
.js
nor.html
code. It is.jsx
, a JavaScript syntax extension. – yqlim May 15 '19 at 3:21