Is it possible to pass extra props to component?
See original GitHub issueCurrently 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:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks!
@hazzo I just published 0.3.5 on npm