What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-09 11:31:01
mockimplementation for setstate
import * as React from 'react'; describe('Some message', () => { const setState = jest.fn(); // eslint-disable-next-line @typescript-eslint/no-explicit-any const useStateMock: any = (initState: any) => [initState, setState]; afterE... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5