Skip to content

Instantly share code, notes, and snippets.

@onedebos
Created March 8, 2021 21:30
Show Gist options
  • Save onedebos/2d5b7dc2dee85538e5400c8e54bae41f to your computer and use it in GitHub Desktop.
Save onedebos/2d5b7dc2dee85538e5400c8e54bae41f to your computer and use it in GitHub Desktop.
pusher react example
import Button from "../components/Button";
export default function Login({ handleLogin, handleLoginChange }) {
return (
<div>
<div>
<h1>Chattr</h1>
<p>your chats, your way</p>
</div>
<form onSubmit={handleLogin}>
<p>
Enter your name to start:
</p>
<div>
<input
type="text"
onChange={handleLoginChange}
placeholder="your name"
/>
<Button text="Sign in to get started" />
</div>
</form>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment