reactjs - Meteor & React Unexpected token -


i keep getting error prevents app start. i've been staring @ , can't seem find problem. i'm sure it's stupid mistake , i'm going @ answer , laugh.

i error:

   while processing files jsx (for target web.browser):    client/components/app/app.jsx:30:4: client/components/app/app.jsx:    unexpected token (30:4) 

here app.jsx file:

app = react.createclass({   mixins: [reactmeteordata],   getmeteordata() {     return {       loggedin: !!meteor.user()     }    },   showlayout() {     return (       <div classname="row">         <div classname="col-md-3">           {this.props.nav}         </div>          <div classname="col-md-9">           {this.props.content}         </div>       </div>       )   },   showlogin() {     return (       <div classname="row">         <div classname="col-md-12 text-center">           <p>you must logged in that.</p>         </div>     )   },   render() {     return (       <div classname="container wrapper">         <div classname="row">           { this.allowedlayout() ? this.showlayout() : this.showlogin() }          </div>       </div>     )   } }); 

you forgot close div here:

 <div classname="row">    <div classname="col-md-12 text-center">      <p>you must logged in that.</p>    </div> 

should be:

<div classname="row">     <div classname="col-md-12 text-center">       <p>you must logged in that.</p>     </div> </div> 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -