Fastro
BlogDocsSign in

Function Component


This component will build JS script.

export const hello = () => {
  return <h1>Hello</h1>;
};

You can also pass a props there.

export const hello = (props: { name: string }) => {
  return <h1>Hello {props.name}</h1>;
};
Made with ♡ in Tulungagung