Reactjs – Why React Hooks must be used inside function components?
I'm studing React and got a question about 'Why React Hooks must be used inside function components' I wrote useContext outside of the function components by mistake, and got a error message. React Hook "useContext" cannot be called at the…