(props)
| 34 | |
| 35 | it('should inspect a simple useState hook', () => { |
| 36 | function Foo(props) { |
| 37 | const [state] = React.useState('hello world'); |
| 38 | return <div>{state}</div>; |
| 39 | } |
| 40 | const tree = ReactDebugTools.inspectHooks(Foo, {}); |
| 41 | expect(normalizeSourceLoc(tree)).toMatchInlineSnapshot(` |
| 42 | [ |