Skip to content

Instantly share code, notes, and snippets.

@joshuacrass
Last active September 18, 2018 08:18
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/d8bda1de4b24ded24417dcffe78207c1 to your computer and use it in GitHub Desktop.
Save joshuacrass/d8bda1de4b24ded24417dcffe78207c1 to your computer and use it in GitHub Desktop.
react-flow app button example
// @flow
import React from 'react';
import { hot } from 'react-hot-loader';
import Button from 'Components/button';
import style from './app.css';
const App = () => {
// define the button text and give it a type of string
const buttonText: string = 'Click Me';
return (
<div className={style.app}>
React Starter
<span role="img" aria-label="rocket ship">
🚀
</span>
<Button>{buttonText}</Button>
</div>
);
};
export default hot(module)(App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment