a
На начальной стадии у нас практически нет ошибок связанных с типами. Но я боюсь, что все еще впереди
Size: a a a
a
KB
a
П
AB
an
ЕС
No overload matches this call.
Overload 1 of 2, '(props: Readonly<BrowserRouterProps>): BrowserRouter', gave the following error.
Type '{ children: Element; history: BrowserHistory<State>; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BrowserRouter> & Readonly<BrowserRouterProps> & Readonly<...>'.
Property 'history' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BrowserRouter> & Readonly<BrowserRouterProps> & Readonly<...>'.
Overload 2 of 2, '(props: BrowserRouterProps, context?: any): BrowserRouter', gave the following error.
Type '{ children: Element; history: BrowserHistory<State>; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BrowserRouter> & Readonly<BrowserRouterProps> & Readonly<...>'.
Property 'history' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BrowserRouter> & Readonly<BrowserRouterProps> & Readonly<...>'. TS2769
import { Router } from "react-router-dom"KB
OR
ЕС
a
KB
DC

И
AB
И

ES
И
AL
DC