Created
March 8, 2021 21:30
-
-
Save onedebos/2d5b7dc2dee85538e5400c8e54bae41f to your computer and use it in GitHub Desktop.
pusher react example
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 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