M
M
myskypesla2018-03-28 21:55:15
Vue.js
myskypesla, 2018-03-28 21:55:15

How to properly split a project into components?

Hi all.
There is a project, promo site, beauty, page transition, etc. The site consists of the following elements:
1) preloader
2) preroll video
3) header
- logo
- burger
- page title
- pop-up menu
4) footer
- mute the site
- a button to go to another page
5) index page
- fullpage js
- slick js slider
Can you use this structure as an example to explain how to think correctly when breaking a project into components? Or maybe there are examples of good manuals?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2018-03-28
@deliro

Everything is simple.
* If a piece of code looks like a separate entity - select it as a component
* If a piece of code is used in more than one place - select

E
Eugene, 2018-03-28
@deworkers

In terms of organizing components, I personally like BEM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question