首页 > 解决方案 > 有没有办法在 nextjs 应用程序中使用 heatmap.js 作为组件?

问题描述

由于我不能将其用作组件,因此我必须将组件设置为硬模式

var heatmapInstance = h337.create({
   // only container is required, the rest will be defaults
   container: document.getElementById('heatmap')
});

但我想要一种方法来拥有更多类似的东西:

<Heatmap data:{}></Heatmap>

标签: javascriptheatmap

解决方案


推荐阅读