Skip to content

Instantly share code, notes, and snippets.

View javad7z7's full-sized avatar
:electron:
In Space

Javad Babaei javad7z7

:electron:
In Space
View GitHub Profile
const [color, setColor] = useState("Yellow");
1. What happens if we use let instead of const ?
2. How will the color constant change in the future? (Given that const value is not changeable in JavaScript)
3. Where does the useState hook read the current color value from?