question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to pass extra props to component?

See original GitHub issue

Currently it looks like this: <RecyclerView :prerender="30" :fetch="MiFetch" :item="MiItem" :tombstone="MiTomstone" ></RecyclerView>

and RecyclerView will pass only one props data to item.

Is it possible somehow to pass extra props like this <RecyclerView :prerender="30" :fetch="MiFetch" :item="MiItem" :tombstone="MiTomstone" :propOne="myProp1" :propTwo="myProp2" ></RecyclerView> Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hazzocommented, Jun 7, 2017

Thanks!

1reaction
hilongjwcommented, Jun 7, 2017

@hazzo I just published 0.3.5 on npm

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pass additional props to a react component - Stack Overflow
I would like to know how to pass additional props to an already defined React component, or if it is possible at all....
Read more >
Passing Props to a Component - React Docs
React components use props to communicate with each other. Every parent component can pass some information to its child components by giving them...
Read more >
How passing props to component works in React
In React, states are passed from one component into another component as props. Since prop names and values will just be passed into...
Read more >
How to Pass All Props to a Child Component in React - Medium
The spread operator lets you pass the entire props object to a child component as that child's props object. (Technically, you are passing...
Read more >
How to use Props in React - Robin Wieruch
As said, there is no way passing props from a child to a parent component. But you can always pass functions from parent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found