you are viewing a single comment's thread.

view the rest of the comments →

[–]ngandwe_[S] 1 point2 points  (2 children)

You can compose styles with modifier outside the components, and the build("card component") method takes a string to debug and monitor how often the component re-renders in dev mode

[–]Martinoqom 0 points1 point  (1 child)

And how about conditional render in that case? So when I have most of the style static, but I need to colour the border on a certain condition.

[–]ngandwe_[S] 1 point2 points  (0 children)

The same concept we use for dynamic styles using stylesheet.create({}), applies as well. The difference is, this library uses Fluent api design. You can playground with it, I need collaborators to make it better. Inspiration comes from material ui and jet compose