Application use useContext for sharing state between components. It is considered bad practice and it is makes it hard to use component outside anypay, because it requires creating context, and this is not always possible. The better way would be to pass the state as the props in the component.
Issue
Application use
useContext
for sharing state between components. It is considered bad practice and it is makes it hard to use component outside anypay, because it requires creating context, and this is not always possible. The better way would be to pass the state as the props in the component.Possible solution
Replace all
useContext
calls with props handling.