A
A
Alianos2021-03-27 01:02:19
Vue.js
Alianos, 2021-03-27 01:02:19

Is it correct to split a component into compound files (vue cli)?

Hello, is it correct to separate one component into a separate css, js, html file? How can I output the scss of a component to a separate file? Can I have an example please

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Swert, 2021-03-27
@swert-tech

If you need to use one piece of code in different components, then mixins will help.

A
Alexey Yarkov, 2021-03-27
@yarkov Vue.js

SFC is one of the features and it is convenient when the component is small, no more than 2 screens in the IDE. It is already inconvenient to scroll more and it is better to split into files. But this is individual of course))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question