This file contains hidden or 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 [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? |