Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add example of render prop technique #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcelmokos
Copy link

Add component with styled components in defaultProps

  • There are two articles where I was focusing on a technique that uses render props together with React defaultProps to create fully customizable components that enable to customize every subcomponent as well.
  • both articles have examples in codesandbox and I prefer to attach an article with an example that has a link to an in-depth one.

In-depth article:
https://medium.com/ableneo/improve-how-you-style-react-apps-use-components-in-defaultprops-a8fd59e875d7

Article with an example:
https://medium.com/ableneo/example-of-a-component-with-styled-components-in-defaultprops-612c0f5ac386

I hope you will like my contribution. Thanks for adding my article in, or for any valuable feedback.

Add component with styled components in defaultProps

- There are two articles where I was focusing on a technique that uses render props together with React defaultProps to create fully customizable components that enable to customize every subcomponent as well.
- both articles have examples in codesandbox and I prefer to attach an article with an example that has a link to an in-depth one. 

In-depth article:
https://medium.com/ableneo/improve-how-you-style-react-apps-use-components-in-defaultprops-a8fd59e875d7

Article with an example:
https://medium.com/ableneo/example-of-a-component-with-styled-components-in-defaultprops-612c0f5ac386

I hope you will like my contribution. Thanks for adding my article in, or for any valuable feedback.
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.

1 participant