@primer/react-canvas
v0.0.2
Published
A canvas extension compatible package for `@primer/react`. This package provides components without any additional build step, just include the `importmap` below and start building.
Maintainers
Keywords
Readme
@primer/react-canvas
A canvas extension compatible package for @primer/react. This package provides
components without any additional build step, just include the importmap below
and start building.
Getting started
To install @primer/react-canvas in your project, you will need to run the following
command using npm:
npm install -S @primer/react-canvasUsage
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/react@%5E19",
"react/jsx-runtime": "https://esm.sh/react@%5E19/jsx-runtime",
"react-compiler-runtime": "https://esm.sh/react-compiler-runtime@%5E1",
"react-dom": "https://esm.sh/react-dom@%5E19",
"react-dom/client": "https://esm.sh/react-dom@%5E19/client",
"@primer/react": "https://esm.sh/@primer/react-canvas@%5E38?deps=react@%5E19,react-dom@%5E19",
"@primer/octicons-react": "https://esm.sh/@primer/[email protected]?deps=react@%5E19",
"htm": "https://esm.sh/[email protected]"
}
}
</script>