Skip to content

Instantly share code, notes, and snippets.

View peternguyenexpert's full-sized avatar

Peter Nguyen peternguyenexpert

View GitHub Profile
//components/CountWidget.js
import React from 'react';
let CountWidget = ({count, handleClick})=>{
return(
<div>
<p>Count: {count}</p>
<button onClick={handleClick}>Increment</button>
</div>
)