@bagisto-native/react
The @bagisto-native/react package provides idiomatic React wrappers around the core Bagisto Native web components, making integration into Next.js and React applications seamless.
Installation
bash
npm install @bagisto-native/reactWhy use this package?
While @bagisto-native/core provides the raw custom elements, using them directly in React can be cumbersome (e.g., handling custom events, avoiding TypeScript errors with non-standard elements).
This package solves those friction points by providing:
- TypeScript Support: Fully typed props and components.
- React Lifecycle Integration: Components work naturally within the React render cycle.
- SSR Compatibility: Designed to work with Next.js dynamic imports to avoid server-side errors with window/document objects.
Learn More
- React / Next.js Wrappers - Code examples and usage guide.
- Relationship with Core - How this package sits on top of the Core library.
Next Steps
- Explore React / Next.js wrappers
- Understand the Relationship with core
- Check Versioning & Compatibility
