Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ymzhou
New Member

[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!

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.