React Library for the Data-Card Component
Using this React Wrapper is recommened to use the data-view-web-component
, as this allows for correct Event Propagation
and passing Object & Arrays directly as Props, aswell as allowing Intellisense for the props.
- Run
npm install data-card-react
- Use as any other React Component
When using in a Next project, you might encounter the error SyntaxError: Unexpected token 'export'
.
This is fixed by adding this package to the transpilePackages
option (Next Docs):
transpilePackages: ['data-card-react']