mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
16 lines
216 B
JavaScript
16 lines
216 B
JavaScript
/**
|
|
* props.b *does* influence `a`
|
|
*/
|
|
function Component(props) {
|
|
const a = [];
|
|
a.push(props.a);
|
|
label: {
|
|
if (props.b) {
|
|
break label;
|
|
}
|
|
a.push(props.c);
|
|
}
|
|
a.push(props.d);
|
|
return a;
|
|
}
|