Skip to content

TypeScript code snippet – How to send data between components in react using link?

<Link
  to={{
    pathname: "/page",
    state: data // your data array of objects
  }}
>
See also  How to return array in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.