# react-scratchblocks

> Display Scratch blocks using a ReactJS component

Latest version **1.1.1** (published 2016-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-scratchblocks
pnpm add react-scratchblocks
yarn add react-scratchblocks
bun add react-scratchblocks
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2016-01-04 |
| First published | 2016-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | TuringLab |
| Maintainers | miskinh |
| Keywords | react-component, react |

## Links

- npm: https://www.npmjs.com/package/react-scratchblocks
- Repository: https://github.com/TuringLab/react-scratchblocks
- Homepage: https://github.com/TuringLab/react-scratchblocks#readme
- Issues: https://github.com/TuringLab/react-scratchblocks/issues
- npm.io page: https://npm.io/package/react-scratchblocks

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^0.14.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2016-01-04
- 1.1.0 — 2016-01-04

## README

# React Scratchblocks

React Scratchbocks is a rewrie of the popular [scratchblocks2](http://github.com/blob8108/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.

```javascript
import Scratchblocks from 'react-scratchblocks'
```

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

```html
<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](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/react-scratchblocks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
