9 lines
156 B
JavaScript
9 lines
156 B
JavaScript
function Component(props) {
|
|
const items = bar();
|
|
mutate(items[props.key], props.a);
|
|
|
|
const count = foo(items.length + 1);
|
|
|
|
return {items, count};
|
|
}
|