Skip to content

Instantly share code, notes, and snippets.

@jaunesarmiento
Last active December 13, 2020 06:32
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 jaunesarmiento/aceb23805c0c72990abcf8c4240c9cb1 to your computer and use it in GitHub Desktop.
Save jaunesarmiento/aceb23805c0c72990abcf8c4240c9cb1 to your computer and use it in GitHub Desktop.
// ... 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