3 ms·
const loadingTuple = React.useState(true) const loading = loadingTuple[0] const setLoading = loadingTuple[1] I've never seen this construct once in the
by ibejoeb 5y ago
const loadingTuple = React.useState(true)
const loading = loadingTuple[0]
const setLoading = loadingTuple[1]
I've never seen this construct once in the wild. Makes one wonder if the author actually uses React.
- satvikpendem 5y agoMaybe they're using ES5 rather than ES6+?
- imcotton 5y agoI once saw someone writing ES5 barehanded, like savages.