Closed nikeshnazareth closed 5 years ago
It seems most of the times that I want to add style, it's for spacing that I want to apply to multiple components. The withStyles seems to be cleaner in that scenario so for now, I will just use Flexview and withStyles throughout (until I think of something better)
This issue is not particularly actionable.
It's probably better to only use actionable issues to avoid generic thoughts clogging up the todo list.
I will close it for now.
The components currently use
FlexView
to perform the layout, with the occassionalstyle
property added directly to components to create spacing. This doesn't seem worse than thewithStyles
strategy unless the components are reusing the same styles (as long as we're mixing data and presentation, a style={...} seems cleaner to me than a class=something tag)It might makes sense to have explicitly presentational components, or find some other way of separating the style and data.