-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This repo should have updates for React 18+ #2040
Comments
Yeh I was wondering about the same thing because I would like to implement DnD feature in my project like Grafana I checked the examples for react-grid-layout but they are implemented using class-based components which React.js itself doesn't recommend. I would like to use functional components and hooks. I tried to convert one of the examples into a functional component but what I'm not able to do is make the items maintain their sizes and positions when I change the screen size from large to small and back to large screen. Currently, this is how the code looks
I tried to lookin to Grafana's code but I couldnt make any sense of it |
I would say if you want to have more fresh version, of this library wit same functionality try to look at gridstack |
Still doesn't technically fit my needs. |
@sikhaman I just the website and it looks promising. I will let you know how it works out for me Thank You. |
Describe the bug
The React Team both has new declarations for class components and recommends we don't use them because they won't support new features for these components. This means this repository needs to update it's documentation and legacy code as we get further and further away from the deprecation, that way the library continues to remain relevant with the now industry standard use of React functional components. The React Team may not currently have plans to remove Class support, but we won't be able to tell in any new major version if this will still be the case, and a majority of new users and applications are going to be only using functional components anyways.
Your Example Website or App
N/A
Steps to Reproduce the Bug or Issue
N/A
Expected behavior
N/A
react-grid-layout library version
1.4.4
Operating System Version
N/A
Browser
Chrome
Additional context
No response
Screenshots or Videos
No response
The text was updated successfully, but these errors were encountered: