score:1

Just remove curly brackets around timer in <Countdouwn/> like this :

const Location = (props) => {
    const [timer, setTimer] = useState([props.match.params.time]);


 return (
        <div>
         <h1>{timer}</h1>
         <Countdown date={Date.now() + timer} />

Related Query

More Query from same tag