Closed ajayns closed 6 years ago
I was thinking we could come up with a an alternate way of assigning default props maybe using prop-types. Would this be a good idea? Plus, it'd help me understanding better if you could tell me why prop-type defaults are preferred for use?
@sithumn @rafaelklaessen
Yeah you could use defaultProps
. That would be preferred because it separates prop logic from component logic, thus resulting in cleaner code.
@rafaelklaessen Thanks, that makes sense. I'll see what I can do!
:tada: This PR is included in version 1.0.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
References #7
Still in development, I'll add changes as we progress in our discussion. This is just to check the code changes I've made and review.
@sithumn