score:0

Accepted answer
const ButtonContainer = props => (
     <button onClick={() => props.getPosts()}>Get Posts</button>
)

Related Query

More Query from same tag