Skip to content

Instantly share code, notes, and snippets.

@ABIDULLAH786
Created August 4, 2023 19:01
var stateVariable = useState('banana'); // Returns a pair
var state = stateVariable[0]; // First item in a pair
var setState = stateVariable[1]; // Second item in a pair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment