Day 60

in code •  7 years ago 

March 14, 2018

Hello! At the React for Beginners course by Wes Bos I learned about updating order state.

       const isAvailable = status === 'available';

     <button disabled={!isAvailable}>{isAvailable ? 'Add To Order' : 'Sold out!'}</button>

     <button disabled={!isAvailable} onClick={() => this.props.addToOrder(this.props.index)}>

If you need access to key you need to pass it in a second time to change state.

At the Web Development Bootcamp by Colt Steele I continued to work on the Yelpish App.

We applied style via bootstrap.
Cheers!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!