igorify
igorify

Reputation: 146

Does React Router v4 support React 16 (Fiber)?

I am trying to migrate my app from React 15.6 to React 16. For now using React Router v2.8.1 and can`t compile build, because have an error with PropTypes.

TypeError: Cannot read property 'func' of undefined.

I know in React 16 PropTypes has moved in separate package.

Does React Router v4 already support React 16 (Fiber)? Should I update it?

Upvotes: 4

Views: 1306

Answers (2)

Andriy F.
Andriy F.

Reputation: 2537

Yes, it supports it. I use react 16 and react-router 4 in my project.

Upvotes: 0

Ankit Balyan
Ankit Balyan

Reputation: 1329

Yes It should, from new release of react-router v4.1.2, They have fixed most of the warning errors and with React 16 beta. It should work if you've resolved all the warning messages from 15.x.

Upvotes: 3

Related Questions