Support for a "data" prop
See original GitHub issueComing from react-window I’m missing the itemData prop, which allows for passing some extra arbitrary data down to children, it’s pretty handy and makes for much cleaner code that doesn’t need to resort to wrapping components, using React’s contexts, or using some other more convoluted way to pass state down the tree.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Prop Data Support
Knowledge base · General · Product Enhancements · Prop Data Management System · E-mail Signatures · Domains · Prop Data Manage.
Read more >Using data attributes - Learn web development | MDN
This article is adapted from Using data attributes in JavaScript and CSS on hacks.mozilla.org. Custom attributes are also supported in SVG 2; ...
Read more >What is “Props” and how to use it in React? - ITNEXT
Furthermore, props data is read-only, which means that data coming from the parent should not be changed by child components. OK now let's...
Read more >.prop() | jQuery API Documentation
In Internet Explorer prior to version 9, using .prop() to set a DOM element property to anything other than a simple primitive value...
Read more >getInitialProps - Data Fetching - Next.js
This new directory has support for colocated data fetching at the component ... is used to asynchronously fetch some data, which then populates...
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 Free
Top 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

datais available in v1 - check #203.Agreed. I understand the practical aspect of the data context and am currently looking into it.