学习typescript并尝试将我的另一个react项目转换为typescript来学习它。: StaticContext | undefined; }' has no properties in common with type 'IntrinsicAttributes'.中收到有关路由的错误name属性也抛出了一个打字错误,但现在我将其注释掉,以便一次解决一个问题。/reusable/Toaster.js";
import { HashRou
通常,我会使用this.props.history.push("/some_other_page");,但是这会给我带来以下错误。)import React, { Component, Fragment } from 'react';
import { BrowserRouter, Route } from 'react-router-dom
我正在尝试将组件从一个路由到另一个,我收到与react路由器链接相关的错误,react路由器的错误是- 我已尝试使用react路由器并将其包添加到我的项目库中。在Navlink.js中,我创建了一个链接返回类,它提供了链接和所有属性。如果有人知道,请帮帮忙。Component } from 'react'