Skip to content

Instantly share code, notes, and snippets.

@isaidspaghetti
Last active August 20, 2020 21:07
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 isaidspaghetti/ddaf6d173617e77308659d3df6ab5827 to your computer and use it in GitHub Desktop.
Save isaidspaghetti/ddaf6d173617e77308659d3df6ab5827 to your computer and use it in GitHub Desktop.
//frontend/src/Admin.js:81
return (
<div className="App container">
<form className="card" onSubmit={register}>
<label>Admin Id</label>
<input
type="text"
value={adminId}
onChange={(e) => setAdminId(e.target.value)}
placeholder="Enter your admin ID"
required
/>
<button type="submit">
Start chat
</button>
</form>
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment