Skip to content

Instantly share code, notes, and snippets.

@slashpot
Created August 10, 2020 14:45
Show Gist options
  • Save slashpot/edc23c82aebfde9a5ac3a9b824f4e280 to your computer and use it in GitHub Desktop.
Save slashpot/edc23c82aebfde9a5ac3a9b824f4e280 to your computer and use it in GitHub Desktop.
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