You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a functional component I get an error when I declare a variable with the name context.
Example code:
constTest=props=>{constcontext=useContext(someContext);return(<div{...props}>{context.test} // Here message: 'Must use destructuring context'
</div>);}