https://github.com/rajesh890-bit/nutrifit_ninjas
Health and Diet websiteEmpowering individuals to achieve optimal health through science-backed insights and personalized diet plans
https://github.com/rajesh890-bit/nutrifit_ninjas
react react-router-dom reacticons tailwindcss typescript
Last synced: about 1 month ago
JSON representation
Health and Diet websiteEmpowering individuals to achieve optimal health through science-backed insights and personalized diet plans
- Host: GitHub
- URL: https://github.com/rajesh890-bit/nutrifit_ninjas
- Owner: Rajesh890-bit
- Created: 2023-05-11T15:39:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-14T05:16:56.000Z (about 3 years ago)
- Last Synced: 2025-06-03T00:19:03.021Z (about 1 year ago)
- Topics: react, react-router-dom, reacticons, tailwindcss, typescript
- Language: TypeScript
- Homepage: https://ninja-ivory.vercel.app/
- Size: 2.06 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nutrifit_ninjas
NutriFit Ninjas
////////////----
const FormData = () => {
const [formData, setFormData] = useState({
name: "",
email: "",
gender: "",
});
const handleChange = (e: React.ChangeEvent) => {
const { name, value } = e.target;
setFormData((prevData) => ({
...prevData,
[name]: value,
}));
};
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault();
console.log(formData);
};
return (
Name
Email
Gender
Male
Female
Other
Submit
);
};
export default FormData;
//-------------