-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4a6bf5
commit 9b4d1d4
Showing
8 changed files
with
69 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
import { createRoot } from 'react-dom/client'; | ||
import '@uiw/reset.css/reset.css'; | ||
import App from './App'; | ||
import MarkdownPreview from '@uiw/react-markdown-preview-example'; | ||
import data from '@uiw/react-heat-map/README.md'; | ||
import Demo from './Example'; | ||
|
||
const Github = MarkdownPreview.Github; | ||
const Example = MarkdownPreview.Example; | ||
|
||
const container = document.getElementById('root'); | ||
const root = createRoot(container!); // createRoot(container!) if you use TypeScript | ||
root.render(<App />); | ||
root.render( | ||
<MarkdownPreview | ||
source={data.source} | ||
components={data.components} | ||
data={data.data} | ||
title="HeatMap for React" | ||
description="React component create calendar heatmap to visualize time series data, a la github contribution graph." | ||
version={`v${VERSION}`} | ||
> | ||
<Github href="https://github.com/uiwjs/react-heat-map" /> | ||
<Example> | ||
<Demo /> | ||
</Example> | ||
</MarkdownPreview>, | ||
); |
This file was deleted.
Oops, something went wrong.