Last active
December 16, 2019 19:14
-
-
Save dipakkr/6ee9830ee71b36a0edb52d659c423823 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
import React from 'react' | |
import ChildComponent from './ChildComponent'; | |
class ParentComponent extends React.Component { | |
render(){ | |
return( | |
<div> | |
<ChildComponent message="Data from first component"/> | |
</div> | |
); | |
} | |
} | |
export default ParentComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment