react-awesome-query-builder
react-awesome-query-builder copied to clipboard
Support for React 15.6.
I am stuck with react 15.6. - no way to upgrade (Sharepoint 2019 on premise). Is there a way to use this awesome feature with react 15.6.?
Thank you in advance.
IssueHunt Summary
Backers (Total: $5.00)
ukrbublik ($5.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
You can try version 4.0
Thank you, after installing there is dependency for redux: [email protected] requires a peer of react@^16.8.3
@ukrbublik has funded $5.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
@ukrbublik
React 15.x didn't have createRef and React.Fragment used in https://github.com/ukrbublik/react-awesome-query-builder/blob/067ce7fd04974639667d60e5659a2c6b26a28b5d/modules/components/containers/Draggable.jsx#L19 and https://github.com/ukrbublik/react-awesome-query-builder/blob/067ce7fd04974639667d60e5659a2c6b26a28b5d/modules/components/item/Group.jsx#L104
So, if you want to support 15.x, I suggest patching 3.0.0 by replacing those createRef and React.Fragment with <Draggable ref="wrapper"/> and this.refs.wrapper
Also autocomplete hook requires 16.8.
I plan to split lib to submodules: core, mui, antd. Maybe we can use old React API and polyfills to sopport React 15 at leaat in core