Forum Discussion
[powerbi-client-react] Suggestion: Relax React peerDependency version to support React 16/17
Hi Power BI team, I'm using powerbi-client-react in an enterprise React application and would like to suggest a change to the
package's peerDependencies.
## Current Situation
The package specifies a strict React version in peerDependencies, which causes compatibility warnings/conflicts for projects not yet on React 18.
## Suggestion
Relax the peerDependency to support React 16+:
```json
"peerDependencies": {
"react": ">=16",
"react-dom": ">=16"
}
Why This Makes Sense
1. No React 18-specific APIs: The powerbi-client-react component uses standard React patterns (hooks, refs, effects) that are fully compatible with React 16.8+ and React 17.
2. Enterprise Reality: Many large organizations have slower upgrade cycles due to stability requirements and extensive testing needs. React 17 is still widely used in production.
3. Industry Standard: Popular libraries like react-query, react-hook-form, and zustand use >=16.8 as their peer dependency to maximize compatibility.
4. Minimal Risk: This is a non-breaking change that simply allows more projects to use the package without warnings or workarounds.
Would the team consider this change? Happy to submit a PR if that would be helpful.
Thanks for the great library!