Skip to content

Instantly share code, notes, and snippets.

@CodeLeom
Created February 3, 2023 10:54
Show Gist options
  • Select an option

  • Save CodeLeom/1051564dc24a98f1e98275b2b28ab3e4 to your computer and use it in GitHub Desktop.

Select an option

Save CodeLeom/1051564dc24a98f1e98275b2b28ab3e4 to your computer and use it in GitHub Desktop.
Generate Logo
import React, { useState } from "react";
const LogoGenerator = () => {
const [city, setCity] = useState("");
const handleSubmit = (event) => {
event.preventDefault();
// Call API to generate logo based on city name
// ...
};
return (
<form onSubmit={handleSubmit}>
<label>
City Name:
<input type="text" value={city} onChange={(e) => setCity(e.target.value)} />
</label>
<button type="submit">Generate Logo</button>
{/* Display generated logo here */}
</form>
);
};
export default LogoGenerator;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment