()
| 579 | |
| 580 | const TestContext = React.createContext({ hello: 2 }); |
| 581 | const ContextTest = () => { |
| 582 | const readContext = React.useContext(TestContext); |
| 583 | |
| 584 | console.log("being rendered"); |
| 585 | console.log(readContext); |
| 586 | |
| 587 | return React.createElement( |
| 588 | "span", |
| 589 | { innerText: "test" + readContext.hello }, |
| 590 | React.createElement(EvenLower, null) |
| 591 | ); |
| 592 | }; |
| 593 | |
| 594 | const EvenLower = () => { |
| 595 | const readContext = React.useContext(TestContext); |
nothing calls this directly
no outgoing calls
no test coverage detected