Relative Content

Tag Archive for javascriptreactjsasynchronoushookreact-custom-hooks

can i use context inside custom hook?

below is the custom hook. I am trying to use context inside it. It throws the error “Invalid hook call. Hooks can only be called inside of the body of a function component”