Created
January 24, 2021 11:30
-
-
Save muneneevans/3f09d613b8f36e5701c7a930e13b323f 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
import React from 'react' | |
export const PostItem = (props) => { | |
return( | |
<div> | |
<span>{props.post.title}</span> | |
<button | |
onClick={() =>{props.clickAction(props.post)}}> | |
view details | |
</button> | |
</div> | |
) | |
} | |
export default PostItem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment