'How to sent more props with NawLink
I want to send props to component with Navlink. This solution is working fine
<NavLink
to={{ pathname: "/" }}
state={{ fromTemperature: data }}
>
Temperature
</NavLink>
but what if I want to send more props like
<NavLink
to={{ pathname: "/" }}
state={{ fromTemperature: data, dailyForecast: dataWeather }}
>
Temperature
</NavLink>
In current componet I always receive only first value, doesn´t matter which value is given first. How I should write it? Is it even possible to do it like this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
