Day 60

in #code7 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!