I'm trying to pass props through react router link. Its basically all the user props.
This is my code thats getting the error where state: {...employee} is highlighted. I'm really noob when it comes to typescript, trying to get better at it but I'm running into all sorts of problems. When i try to add anything to the state, i still get the same error.
<Link to={{ pathname: `/edit-employee/${id}`, state: {...employee} }}>