Skip to content

Instantly share code, notes, and snippets.

@joshuacrass
Created September 18, 2018 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuacrass/ae9ef564dcc0f8f698035eb7b334336b to your computer and use it in GitHub Desktop.
Save joshuacrass/ae9ef564dcc0f8f698035eb7b334336b to your computer and use it in GitHub Desktop.
react-flow element type button
// @flow
import React from 'react';
import type { Element } from 'react';
type Props = {
children: string,
};
const Button = (props: Props): Element<'button'> => {
const { children } = props;
return <button type="button">{children}</button>;
};
export default Button;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment