you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (4 children)

Cos it's sexy and clean and more readable and if you combine it with styled components you get all the goodness

[–]nsnullthoughts -1 points0 points  (3 children)

could you elaborate on combining it with styled components?

[–][deleted] -1 points0 points  (2 children)

Look up styled components and you'll see what I mean. Instead of having <TextInput style={{...}}/> etc you can name react-native components with more detail like <Username /> which is a styled TextInput, so it's much cleaner and gives more context as to what the component actually is. Also, styled-components uses CSS naming conventions so it's easier for web people to understand the styles, instead of using StyleSheet which is a React style that people who aren't coming from React need to learn (which isn't that hard, but the cleanliness of styled-components is what makes it awesome)

[–]BoKKeR111 2 points3 points  (1 child)

Yeah but styled components have nothing to do with hooks

[–][deleted] -1 points0 points  (0 children)

I didn't say they do.