Day 60

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

Coin Marketplace

STEEM 0.23
TRX 0.12
JST 0.029
BTC 66186.23
ETH 3494.08
USDT 1.00
SBD 3.17