/
skitchen
/
Portal
Обзор
Документация
Войти
/
skitchen
/
Portal
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/features/addCommentForm/ui/AddCommentForm/AddCommentForm.async.tsx
8 строк
383 B
nikita
Add fully functional 'comment form'
08 окт 2023, 22:03
08 окт 2023, 22:03
215204f
Код
Авторство
О чём код?
import { FC, lazy } from 'react'; import { AddCommentFormProps } from './AddCommentForm'; export const AddCommentFormAsync = lazy<FC<AddCommentFormProps>>(() => new Promise((resolve) => { // @ts-ignore // ТАК В РЕАЛЬНЫХ ПРОЕКТАХ НЕ ДЕЛАТЬ!!!!! ДЕЛАЕМ ДЛЯ КУРСА! setTimeout(() => resolve(import('./AddCommentForm')), 1500); }));