mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
12 lines
185 B
JavaScript
12 lines
185 B
JavaScript
function component({ mutator }) {
|
|
const poke = () => {
|
|
mutator.poke();
|
|
};
|
|
|
|
const hide = () => {
|
|
mutator.user.hide();
|
|
};
|
|
|
|
return <Foo poke={poke} hide={hide}></Foo>;
|
|
}
|