A
A
Andrey Okhotnikov2019-09-03 17:11:54
css
Andrey Okhotnikov, 2019-09-03 17:11:54

Benefits of Styled components in React native?

What are the real advantages of styled-components over standard stylesheet ? And does using styled-components in React native affect rendering speed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
strelok011, 2019-09-04
@strelok011

Buns.
1. styled-components - styles remain only with this component. For large projects it is critical.
2. Styles are strongly independent, i.e. the component carries everything with it.
3. Because it's js - all styles can be easily influenced programmatically. Including creating themed applications, device-dependent design, and so on and so forth. The advantage is that you don’t bother with implementations in css and meta, you write all the logic in js.
4. Many frameworks, such as the same material-ui, are built just on this principle.
React native did not touch, but I think that it will not load the application much.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question