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  TypeScript code snippet - How to collect array of objects in one value key in laravel?

Leave a Reply

Your email address will not be published.

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