mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
5 lines
82 B
JavaScript
5 lines
82 B
JavaScript
function Component(props) {
|
|
const x = props.cond ? useA : useB;
|
|
return x();
|
|
}
|