Skip to content

Commit

Permalink
vault backup: 2023-10-03 16:43:15
Browse files Browse the repository at this point in the history
Affected files:
content/chart-js/react-chartjs-2/Tree-shaking in react-chartjs-2.md
  • Loading branch information
windsuzu committed Oct 3, 2023
1 parent f165719 commit 96d61fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: Tree-shaking in react-chartjs-2
draft: false
date: 2023-10-03 16:29
date: 2023-10-03 16:43
tags:
- learning
- chart-js
- react-chartjs-2
---

There are three different ways to import dependencies before creating our chart:
There are three different ways to import dependencies in [[react-chartjs-2]] before creating our chart:
1. The laziest way - import all dependencies from [[Chart.js]].
2. The tree-shakable way - import only what is needed for the specific chart.
3. The tree-shakable typed chart components - no need for a controller.
Expand Down

0 comments on commit 96d61fe

Please sign in to comment.