React Component to generate a Stackblitz Editor
npm install react-stackblitz-snippetReact Component to generate a Stackblitz Editor
``sh`
yarn add react-stackblitz-snippet
or
`sh`
npm i react-stackblitz-snippet --save
1. import:
`ts`
import { Stackblitz } from 'react-stackblitz-snippet';
2. Use:
`html`
- Stackblitz#project: Stackblitz API project
- Stackblitz#options: Stackblitz API options
The file children can be used to easily add snippet code (see Usage). The open flag defines which file will be opened by default.
Open Demo in Stackblitz or clone the repo and run npm start`!