E
E
Evgeny Koryakin2019-03-26 23:45:16
React
Evgeny Koryakin, 2019-03-26 23:45:16

Is it possible to automatically import components from the library?

Hello.
I've had enough of messing around with

import { Panel, ListItem, Button, Group, Div, Avatar, PanelHeader } from '@vkontakte/vkui';

Namely, adding each time Panel, ListItem , etc.
Is there any way to automate this process?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2019-03-27
@zettend

Yes.
Write the name of the class/component, press the "auto-import" button on it, and it will add them by itself.
There are in Webstorm and VSCode, as in others - I don't know.
In typescript it works especially well, in pure JS - I haven't looked at it for a long time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question