Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Then you may try whether https://github.com/mikeborozdin/jest-react-hooks-shallow works for your project.
You can already achieve the same thing. Have a look at this implementation https://github.com/codeshake/react-deep-hooks/blob/master/src/index.ts
export function useMountEffect(effect: CallableFunction): void { useEffect(() => { effect(); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); } ``` Taken from https://github.com/react-hookz/web/blob/master/src/useMountEffect/useMountEffect.ts