简体   繁体   中英

Do I still need this @types/react-router-dom package when using v6 of react-router-dom?

I am confused about these two packages. I am making a new Typescript project.

The thing is that In my previous projects I install react-router-dom and @types/react-router-dom for typescript support.

But right now when react-router-dom v6 comes out.

@types/react-router-dom package doesn't seem to be updated anymore. Do I still need to install this one? Will it work fine without it?

react-router-dom v6 是用 typescript 编写的,所以是的,你不需要安装@types/react-router-dom

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM