add example of render prop technique#82
Open
marcelmokos wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add component with styled components in defaultProps
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.