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!

Coin Marketplace

STEEM 0.26
TRX 0.20
JST 0.038
BTC 96558.27
ETH 3605.35
USDT 1.00
SBD 3.87