MCPcopy
hub / github.com/facebook/react / if

Function if

packages/react-dom/src/__tests__/ReactLegacyCompositeComponent-test.js:712–723  ·  view source on GitHub ↗
(this.props.flipped)

Source from the content-addressed store, hash-verified

710
711 render() {
712 if (this.props.flipped) {
713 return (
714 <div>
715 <Static ref={this.static0Ref} key="B">
716 B (ignored)
717 </Static>
718 <Static ref={this.static1Ref} key="A">
719 A (ignored)
720 </Static>
721 </div>
722 );
723 } else {
724 return (
725 <div>
726 <Static ref={this.static0Ref} key="A">

Calls 2

BClass · 0.70
AClass · 0.70

Tested by

no test coverage detected