react-stackblitz-snippet
React Component to generate a Stackblitz Editor
Installation
yarn add react-stackblitz-snippet
or
npm i react-stackblitz-snippet --save
Usage
- import:
;
- Use:
console.log("hello stackblitz!!");
Options
- 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.
Demo
Open Demo in Stackblitz or clone the repo and run npm start
!