concise-arrow-expr.js6 lines
mainRaw
function component() {
  let [x, setX] = useState(0);
  const handler = v => setX(v);
  return <Foo handler={handler}></Foo>;
}
Loading syntax highlighting…