Date: July 13, 2020

Topic: prep call workshop

react

//this is a variable referencing a arrow function - a nicer way to write javascript functions
const sayHello = () => {
	console.log('hello')
}
const counter = 0;
//now you can do this under return. curly braces= add javascript. onclick listens to when the user clicks button
<button onClick={sayHello}>{counter}</button>
//in app.js. u can use numbers strings etc not just boolean. 
const [isLoggedIn, setLoggedIn] = useState(true);
const [isLoggedOut, setLoggedOut] = useState(false);
setLoggedOut(true);//changes isLoggedOut. you can make functions that change state