Testing React custom hook – how to mock useContext value with Jest

You’ve written this awesome custom hook that uses context. How do you test the hook? Learn to mock useContext value with Jest. Read more

Similar

React Without Build Tools

First off: this is mostly a reference for myself. I find myself quite often needing to prototype something really quick, sometimes even build an “MVP” of something I can put out into the world for feedback. Using a framework like React can make doing that... (more…)

Read more »