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.29
TRX 0.12
JST 0.033
BTC 69715.93
ETH 3772.35
USDT 1.00
SBD 3.77