M
M
mikoniyan2019-09-22 23:57:39
Frontend
mikoniyan, 2019-09-22 23:57:39

How to create components, are there any style guides or how-to guides?

I started to understand JS Frameowrks and came across the fact that I used to create simple css blocks (by bem), and in vue or react they are not just html css blocks, but also execute a lot of js.
Tell me what to learn and where to dig in order to correctly create components?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2019-09-23
@Xuxicheta

In different frameworks, the role of components is slightly different.
But in general, solid should be observed, the component should do one thing, have a concise interface, expand through wrappers and communicate only with the nearest entities.
The super ability to correctly divide an application into components will only come with practice. While you can strive for "the simpler the component, the better", this is especially true for React.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question