Last active
December 2, 2016 13:02
-
-
Save oreqizer/e9ddb5712b2872cb54540c75b4c1a73c to your computer and use it in GitHub Desktop.
An example of logic-less components.
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
import React, { Component } from 'react'; | |
const FnComponent = props => ( | |
// ...your JSX | |
); | |
class ClassComponent extends Component { | |
// ...lifecycle hooks | |
// ...handlers | |
render() { | |
return ( | |
// ...your JSX | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment