1.0.2 • Published 3 years ago

react-rune v1.0.2

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

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
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago