-1👍
✅
You can write it like this directly in the component:
import CalHeatmap from 'cal-heatmap'
0👍
import CalHeatMap from 'cal-heatmap
is right
besides, remember to import css file
import 'cal-heatmap/cal-heatmap.css'
Source:stackexchange.com