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()
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…