Last active
March 7, 2017 22:35
-
-
Save Kosmin/7efd683aeada85c6722ddf0d4acfd36c to your computer and use it in GitHub Desktop.
React Pure Function Component Example
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
import React from 'react'; | |
const Car = ({details}) => { | |
console.log('rendering Car component'); | |
return ( | |
<div> | |
{`Your object: ${details.name} ${details.color}`} | |
</div> | |
); | |
} | |
export default Car; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment