Proposal: Add Support for React Hooks to LSD
Summary
I am proposing the implementation of React hooks to enhance the performance and flexibility of the design system.
Motivation
React hooks are a powerful tool that enables developers to write functional components with state and lifecycle methods. By adding support for React hooks, LSD can provide a more modern and flexible approach to building UI components and applications.
Proposed Solution
To add support for React hooks to LSD, we would need to collaborate as a team with the help of community and dedicate resources to the development and implementation of the feature. Specifically, we could:
- Research and identify which React hooks would be most useful for the LSD community
- Develop and test the implementation of React hooks within LSD
- Update the documentation and provide examples for how to use the new feature
Proposed Hooks
We could consider adding the following React hooks to LSD, categorized by Enhancement, Utilities, and Development:
Enhancement
- useKeyboard
- useInput
- useModal
- useTabs
- useToast?
Utilities
- useBodyScroll
- useClipboard
- useMediaQuery
Development
Benefits
By adding support for React hooks to LSD, we can improve the performance and flexibility of the design system, making it a more powerful tool for developers. The proposed hooks can enhance the user experience, improve productivity, and simplify the development process.
Next Steps
To keep the discussion going and decide on the final list of React hooks to be added to LSD, we can:
- Create a separate document or thread to brainstorm and discuss potential React hooks
- Gather feedback and suggestions from the LSD community and evaluate the feasibility and usefulness of each proposed hook
- Once the final list is decided, move them to the LSD's feature list and start the development process
As for where to host the list of proposed React hooks, we could use either GitHub or Notion. Both platforms offer collaborative features and can be accessed by the LSD community. We can choose the platform that best fits our needs and preferences.
Cheers 🍻