data-card-react
v0.0.12
Published
React Wrapper for Data View Web Component
Downloads
2
Readme
React Library for the Data-Card Component
Installation
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
Troubleshooting
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']