This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fuck fuck fuck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
type: "ADD_TASK", | |
taskType: 'VeryImportantTasks' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Counter = ({onIncrement, value}) => ( | |
<div> | |
<h1>{value}</h1> | |
<button onClick={onIncrement}</button> | |
</div> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const state = { | |
buttonValue: 0 | |
} | |
const action = { | |
type: "INCREMENT_BUTTON" | |
value: 30 | |
} | |
const reducer = (state, action) => { | |
switch(action.type) { | |
case "INCREMENT_BUTTON": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
signedIn: false, | |
userList: [ | |
{ | |
name: "MATHDUDE", | |
favNum: 3.14159 | |
}, | |
{ | |
name: "Grumpy man", | |
favNum: 0 |