DB
Ребята, кто может помочь с drag and drop с ОС в браузер?
так и не увидел, ответили ли тебе. Юзаю https://github.com/react-dropzone/react-dropzone пока очень хорошие впечатления.
Size: a a a
DB
IV
AK
AK
JC
AR
KK
JC
AR
JC
KK
JC
KK
JC
KK
AO
AO
DD
const Test: FC = ({ children }) => {
const { systemErrors, runtimeErrors } = useErrorService();
const hasNoCriticalErrors = isEmpty(systemErrors) && isEmpty(runtimeErrors);
if (hasNoCriticalErrors) {
return children;
}
return <ErrorPage systemErrors={systemErrors} runtimeErrors={runtimeErrors} />;
};
TS2322: Type '({ children }: { children?: ReactNode; }) => {} | null | undefined' is not assignable to type 'FC<{}>'. Type '{} | null | undefined' is not assignable to type 'ReactElement<any, any> | null'. Type 'undefined' is not assignable to type 'ReactElement<any, any> | null
EM
const Test: FC = ({ children }) => {
const { systemErrors, runtimeErrors } = useErrorService();
const hasNoCriticalErrors = isEmpty(systemErrors) && isEmpty(runtimeErrors);
if (hasNoCriticalErrors) {
return children;
}
return <ErrorPage systemErrors={systemErrors} runtimeErrors={runtimeErrors} />;
};
TS2322: Type '({ children }: { children?: ReactNode; }) => {} | null | undefined' is not assignable to type 'FC<{}>'. Type '{} | null | undefined' is not assignable to type '