Created
December 2, 2020 17:33
-
-
Save sewerynkalemba/9c47b0b35b0b403e53c131be46d42698 to your computer and use it in GitHub Desktop.
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 a = 'witaj' | |
const b = 42 | |
const c = {d: [true, false]} | |
console.log({a, b, c}) | |
// to jest to samo, co: | |
console.log({a: a, b: b, c: c}) | |
// w Reactcie: | |
function Counter({initialCount, step}) { | |
const [count, setCount] = useCounter({initialCount, step}) | |
return <button onClick={setCount}>{count}</button> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment