import React, { useState } from 'react'; import { Link } from 'react-router-dom'; const Generate = () => { const [name, setName] = useState(''); const [day, setDay] = useState(1); const [month, setMonth] = useState(1); const [link, setLink] = useState(''); const generateLink = () => { setLink( `https://birthday-wisher.netlify.app/birthday/${name}/${day}/${month}` ); }; return (

Generate Here

setName(e.target.value)} /> setDay(e.target.value)} max={31} min={1} />
{link !== '' ? ( <>

{link}

) : ( '' )}
); }; export default Generate;