Spelunking-Studios / The-Caverns-Website

Local variable name shadows variable in outer scope JS-0123
Bug risk
Minor
a month ago2 years old
'value' is already declared in the upper scope on line 5 column 9
 3
 4function useForceUpdate() {
 5	const [value, setValue] = useState(0);
 6	return () => setValue(value => value + 1); 7}
 8
 9export default function WordWheel(props) {