Last active
April 26, 2016 11:31
-
-
Save erikthedeveloper/bbbfeb6d4179a934da06e2e802a98a6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * See: http://facebook.github.io/react/docs/reusable-components.html#stateless-functions | |
| */ | |
| const SomeStatelessComponent = (props) => { | |
| return ( | |
| <div> | |
| <h1>Hello, I am SomeStatelessComponent!</h1> | |
| <h3>{props.message}</h3> | |
| // Only render children when we are not loading | |
| {props.loading ? 'Loading...' : props.children} | |
| </div> | |
| ) | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment