プロジェクト
概要
A React component to add annotations to any element on a page 🥔
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルreact-tater 🥔
A React component to add annotations to any element on a page

Install
yarn add react-tater
Usage
import React from 'react';
import Tater from 'react-tater';
import YourElement from './your-element';
const taterOptions = {
name: 'your-element-1', // The namespace used for local storage
space: 30 // The size, in pixels, of the grid and emojis
};
const App = () => (
<>
<Tater options={taterOptions}>
<YourElement /> {/* any element you want to annotate */}
</Tater>
</>
);
Development
If you want to make changes to this library in a local development environment, first you need to symlink some packages:
cd ../example-app/node_modules/react && yarn link
cd react-tater && yarn link && yarn link react
cd ../example-app && yarn link react-tater
This allows you to see changes to this package immediately in your example app and prevents the example app from seeing more than one copy of React.
Then start the dev server which will build the module and watch for changes to automatically rebuild:
cd react-tater && yarn start
Then add import Tater from 'react-tater'; to your example project to use it.
To run tests:
cd react-tater && yarn test
Or:
cd react-tater && yarn test:watch
関連プロジェクトを探す
読み込み中…