Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

react-scratchblocks

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-scratchblocks

Display Scratch blocks using a ReactJS component

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

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

Keywords

react-component

FAQs

Package last updated on 04 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts