score:7

Accepted answer
const Counter: FunctionComponent = function() {
  return <div>hello from Counter1</div>;
}

score:1

interface Counter extends FunctionComponent {}
function Counter() {
  return <div>hello from Counter1</div>;
}

Related Query

More Query from same tag