Skip to content

Turinglab/react-scratchblocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published