MCPcopy Create free account
hub / github.com/testing-library/react-testing-library / render

Method render

src/__tests__/error-handlers.js:64–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 handleComponentDidCatch(error, errorInfo)
63 }
64 render() {
65 if (this.state.error) {
66 return null
67 }
68 return this.props.children
69 }
70 }
71 function Thrower() {
72 throw thrownError

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected