509 Views
With just a few, customizable props, you can have beautiful SVG sparklines ready for your React application. You can install the Sparkline component via NPM or Yarn: npm install react-sparkline-svg or yarn add react-sparkline-svg Once installed, it's easy to import and use: import Sparkline from 'react-sparkline-svg'; function MyComponent() { return ;} The values prop - an array of numbers - is the only required prop.
0 comments