react-rune

1.0.2 • Public • Published

react-rune

npm version

React wrapper for Rune.js

Install

npm i react-rune

Use

import React from 'react';
import Rune from 'react-rune';

const FooBar = () => {
  const draw = (rune) => {
    rune.rect(0, 0, 200, 200).fill(0, 0, 255);
  };

  return (
    <>
      <div id="canvas" />
       <Rune height={400} width={400} draw={draw} />
    </div>
  );
};

export default FooBar

Readme

Keywords

none

Package Sidebar

Install

npm i react-rune

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

10.3 kB

Total Files

12

Last publish

Collaborators

  • romellogoodman