Created
August 10, 2020 14:45
-
-
Save slashpot/edc23c82aebfde9a5ac3a9b824f4e280 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 CounterContainer from "./CounterContainer"; | |
export const Counter = CounterContainer(props => { | |
return( | |
<div className="wrapper"> | |
<div className="btn-group"> | |
<button onClick={props.increment}>increment</button> | |
<button onClick={props.decrement}>decrement</button> | |
</div> | |
<p>Counter: {props.count}</p> | |
</div> | |
) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment