Skip to content

Instantly share code, notes, and snippets.

@reime005
Created September 8, 2019 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/9a6bb6d0185e10a5536cce97561a7bc4 to your computer and use it in GitHub Desktop.
Save reime005/9a6bb6d0185e10a5536cce97561a7bc4 to your computer and use it in GitHub Desktop.
/* src/Home.js */
import React from 'react';
const Home = ({
counter,
makeCall,
takeEvery,
/* ... */
}) => (
<div>
<p id="testCounter">{counter}</p>
<button id="testButton" onClick={() => makeCall()}>
Call
</button>
<button onClick={() => takeEvery()}>Take Every</button>
/* ... */
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment