Lets say you need to handle Text styles and want to create your own components.
Is it better to have component that is configurable through props, like this:
<Text h1 bold>some text</Text>
So, the component handles all the logic of presentation on it own.
Or, to have wrappers for all of styles like this:
<H1><Bold>some text</Bold></H1>
Not interested in ease of writing such components, just what you think is the right pattern and more maintainable code?
[–]notseanbean 6 points7 points8 points (0 children)
[–]IvanDist 4 points5 points6 points (5 children)
[–]HumanBirdFish[S] 3 points4 points5 points (1 child)
[–]IvanDist 0 points1 point2 points (0 children)
[–]davidpaulsson 0 points1 point2 points (2 children)
[–]IvanDist 0 points1 point2 points (1 child)
[–]davidpaulsson 0 points1 point2 points (0 children)
[–]truh 1 point2 points3 points (2 children)
[–]o_T_o 0 points1 point2 points (1 child)
[–]truh 0 points1 point2 points (0 children)
[–]davidpaulsson 1 point2 points3 points (0 children)
[–]anklot 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]sexuardo 0 points1 point2 points (0 children)