Skip to content

Pass props to the container-element#14

Closed
JasperH8g wants to merge 1 commit intoacdlite:masterfrom
JasperH8g:master
Closed

Pass props to the container-element#14
JasperH8g wants to merge 1 commit intoacdlite:masterfrom
JasperH8g:master

Conversation

@JasperH8g
Copy link

I was really missing this little feature. Mostly because of styling (and I couldn't set a className on the container), but in some rare cases I'd want to add an onClick or style prop to the component itself. The contents of the container would be a string, so passing everything wouldn't be a problem IMHO.


return (
<Container>
<Container {...this.props}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotta change this to not pass the container prop down!

@JasperH8g
Copy link
Author

Hmm, just found out that this was still open 😅 I'm not using this anymore, nvmd

@JasperH8g JasperH8g closed this Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments