Created
May 9, 2020 07:56
-
-
Save polyglotpiglet/8869b67aa17f32442d9e26ee29f70290 to your computer and use it in GitHub Desktop.
This file contains 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
const Kitten = (props) => { | |
return ( | |
<h1>Cats</h1> // put jsx in here | |
) | |
} | |
// or | |
class Kitten extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return ( | |
<h1>Cat</h1> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment