├── README.md
├── jest.config.js
├── package-lock.json
├── package.json
├── src
│ └── useMemoizedFn
│ ├── __tests__ // 测试
│ └── index.ts // 源码
└── tsconfig.json
Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
testing-library/react-testing-library#509 testing-library/react-hooks-testing-library#655
todo: 升级到支持 react18 的版本