Skip to content

Conversation

@a-malykhin
Copy link

Implement Icon and IconStack as stateless presentation component. Add classnames package for more shorten manage of React component className. Add defaultProps for all non-required properties.

… classnames package for more shorten manage of React component className. Add defaultProps for all non-required properties.
"babel-loader": "^5.3.2",
"babel-plugin-espower": "^1.0.0",
"babel-runtime": "^5.8.20",
"classnames": "^2.2.5",
Copy link
Owner

Choose a reason for hiding this comment

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

Not sure if it's worth it to introduce a dependency.

Copy link
Author

Choose a reason for hiding this comment

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

Your lib your rules) I just have added this for more clear code. All modern JS-world built on dependencies.

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah... just not sure if it's worth fixing what ain't broken :-)

Copy link
Author

Choose a reason for hiding this comment

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

Ok. Anyway you could use stateless components and const except of let in properties destructuring (this variables are never reassigned).

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