react-scratchblocks

1.1.1 • Public • Published

React Scratchblocks

React Scratchbocks is a rewrie of the popular scratchblocks2 library written by Tim Radvan. Most of the code is taken from the origional however this version uses ReactJS as the view component as opposed to jQuery.

Installation

This repository is stored on NPM to allow it be easily included in existing React projects. Install using the following command.

npm install react-scratchblocks --save

Usage

To use this component in a React application it needs to be imported.

import Scratchblocks from 'react-scratchblocks'

Then Scratch codeblocks can be used within React application using the following tag.

<Scratchblocks code="say [hello]" />

In addition to the code prop an optional boolean prop inline can be used to specify inline Scratch blocks

Licence

Open Source MIT

Readme

Keywords

Package Sidebar

Install

npm i react-scratchblocks

Weekly Downloads

1

Version

1.1.1

License

MIT

Last publish

Collaborators

  • miskinh