Last active
December 13, 2020 06:32
-
-
Save jaunesarmiento/aceb23805c0c72990abcf8c4240c9cb1 to your computer and use it in GitHub Desktop.
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 statements here | |
function App() { | |
// Placeholder function for handling changes to our chat bar | |
const handleChange = () => {}; | |
// Placeholder function for handling the form submission | |
const handleSubmit = () => {}; | |
return ( | |
<div className="container"> | |
<div className="messages"> | |
<div className="messages-scroller"> | |
{/* messages will be loaded here */} | |
</div> | |
</div> | |
<div className="chat-bar"> | |
<form onSubmit={handleSubmit}> | |
<input | |
type="text" | |
name="messageBody" | |
placeholder="Type your message here" | |
onChange={handleChange} | |
value={''} | |
/> | |
</form> | |
</div> | |
</div> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment