Could you add React 17 as peerDependencies? As React 17 has no difference from React 16, just adding react@17 to package.json will be enough.