B
B
Barring2020-08-27 20:21:03
JavaScript
Barring, 2020-08-27 20:21:03

Where in the project to place a folder for different functions?

In a project (vue) there was a need to use the same functions in different places. Is there any generally accepted solution for putting things like this somewhere?

Now I'm placing it in the mixins folder, but this is clearly not the most correct solution. these functions are used not only in components, but also in other places (store, etc.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-08-27
@Barring

In which folder should I put common functions that I export for import into various components?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question