Closed esafata closed 3 years ago
@esafata I guess you are in China.
nope. How to i can try it?
@esafata https://www.astrill.com
what is this code can integratted with my NextJS project?
import ReactDOM from 'react-dom'; import HeatMap from '@uiw/react-heat-map';
const value = [
{ date: '2016/01/11', count: 2 },
{ date: '2016/01/12', count: 20 },
{ date: '2016/01/13', count: 10 },
...[...Array(17)].map((_, idx) => ({ date: 2016/02/${idx + 10}
, count: idx, content: '' })),
{ date: '2016/04/11', count: 2 },
{ date: '2016/05/01', count: 5 },
{ date: '2016/05/02', count: 5 },
{ date: '2016/05/04', count: 11 },
];
const Demo = () => { return (
)
};
ReactDOM.render(
this code is in a new file created or there is on the repository file?
@esafata You are asking how the sample code is displayed?
where the sample code existed?
i dont know how to start use the code
@esafata The sample code is in REAME.md
<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->
```jsx
\```
I mean, where i write the sample code? on the new file or on the file existed?
on my project there is not file with extention .tsx
only .js in my project
Thanks, i got it. 👍 👍
have worked 👍
uiwjs.github.io/react-heat-map/ this website cannot accessed. So i cannot try it the project