()
| 1081 | const BarContext = React.createContext(0); |
| 1082 | |
| 1083 | function FooAndBar() { |
| 1084 | return ( |
| 1085 | <FooContext.Consumer> |
| 1086 | {foo => { |
| 1087 | const bar = readContext(BarContext); |
| 1088 | return <Text text={`Foo: ${foo}, Bar: ${bar}`} />; |
| 1089 | }} |
| 1090 | </FooContext.Consumer> |
| 1091 | ); |
| 1092 | } |
| 1093 | |
| 1094 | class Indirection extends React.Component { |
| 1095 | shouldComponentUpdate() { |
nothing calls this directly
no test coverage detected