An open API service indexing awesome lists of open source software.

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

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;

//-------------