State-Component
props.dictionary.words.forEach((word) => {
return this[word] = React.createRef()
})
Trying to do something like this with a functional-component
props.dictionary.words.forEach((word) => {
return word = createRef()
})
State-Component
props.dictionary.words.forEach((word) => {
return this[word] = React.createRef()
})
Trying to do something like this with a functional-component
props.dictionary.words.forEach((word) => {
return word = createRef()
})