D
Size: a a a
D
V
MK
GO
TP
И
И
MK
MK
И
И
React Hook "useContext" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function.eslint(react-hooks/rules-of-hooks)
whithMyHOC = Component = props => {
const {} = useContext(anyStore);
return <Component {…props} />
}
-
ВП
[activeRoom, setActiveRoom] = useState(false)
const setRoom = () => {
setActiveRoom(!activeRoom)
}Т
AE
K
[activeRoom, setActiveRoom] = useState(false)
const setRoom = () => {
setActiveRoom(!activeRoom)
}V
PW

AE
K
