Custom components should have more control over the props
See original GitHub issueBecause we don’t pass anything else than the results and className you don’t have too much control over the props and in my case I want to use something like onSelect event so I need to add some function in the Griddle component and use it inside the custom grid component.
Probably we should add more props or even add all the props to the custom grid component.
PS: You can’t use onRowClick click either.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How To Customize React Components with Props
In this tutorial, you'll create custom components by passing props to your component. Props are arguments that you provide to a JSX element....
Read more >Implementing Control Props in custom React Components
This is a livestream of part of my Advanced React Component Patterns in Portland at ChainReactConf 2018. Find the exercises here: ...
Read more >How passing props to component works in React
Master how to pass props (properties) to components in React with this useful beginner's guide, including demo code.
Read more >Higher-Order Components - React
A higher-order component (HOC) is an advanced technique in React for reusing component logic. HOCs are not part of the React API, per...
Read more >Better Reusable React Components with the Overrides Pattern
Overriding props is pretty straightforward, the object you specify will be spread in with the default props, taking precedence over them. In ......
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

@ryanlanciaux very smart movement in separated the component in two modules 👍 I got what you did there. So let ask you something. How can I build the project using griddle-core and griddler-render?
Right now I sort of understand what you did but I don’t have any idea about how to use it, if you can provide any route for use the other concept will be great
@ryanlanciaux which one is the best method for communicate with the your team? I don’t want to create issues for some discussion about griddle and I need you to see it 😄
+1