andrewagain/calculator

Class binding in Button.js

Opened this issue · 1 comments

Should the classes be binded in a some React-native way instead of inside the render method trough join?

React used to have something for this built-in, but they moved into a separate repository: https://github.com/JedWatson/classnames#usage-with-reactjs

For now I would rather use .join(" ") then add another dependency.