react-chrome-extension-router icon indicating copy to clipboard operation
react-chrome-extension-router copied to clipboard

message passed to component gets used up

Open ltann opened this issue 4 years ago • 1 comments

Hello!

I was wondering if this was an error that you have:

What I tried doing with the sample code you have in the codesandbox and noticed that if I were to do this:

const Two = ({ message, sec }) => (

Click me to go to component 3. //doesn't know what message is
);

It seems to me that the button element had used the message prop that was passed into the component and now could no longer be used again in the Link element tag. If this is the case how should I go about passing props to multiple elements?

ltann avatar Apr 10 '20 13:04 ltann

Hey @ltann thanks for filing this issue! Is there any chance you have a codesandbox example?

kelsonpw avatar Apr 04 '21 16:04 kelsonpw