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.

Custom components should have more control over the props

See original GitHub issue

Because 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:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yordiscommented, Aug 13, 2015

@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 😄

0reactions
McChencommented, Sep 3, 2015

+1

Read more comments on GitHub >

github_iconTop 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 >

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