You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to tokenize a simple program but I get syntax error. Can you tell me why is that?
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */importReact,{Component}from'react';importPropTypesfrom'prop-types';importloadfrom'absoluteLoad';exportdefaultclassextendsComponent{staticpropTypes={onReady: PropTypes.func.isRequired,};constructor(props){super(props);this.state={users: []};}asynccomponentDidMount(){constusers=load();this.setState({ users });}componentDidUpdate(){this.props.onReady();}render(){return(<divid="feature-node-path">{this.state.users.map(user=>(<divkey={user.id}>{user.name}</div>))}</div>);}}
The text was updated successfully, but these errors were encountered:
I am trying to tokenize a simple program but I get syntax error. Can you tell me why is that?
The text was updated successfully, but these errors were encountered: