react-hooks-unit-test-example How to write unit tests of custom React Hooks. React blog (official) Here are two examples: only with React and ReactDOM's api with testing-library My blog post (Japanese)