1.0.1 • Published 6 years ago

react-coord-compass v1.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

React Coord Compas

Introduction

A react component that will point to 2 coordinates in your browser, should you ever need it. Example usage: https://github.com/fengelz/follow-the-mouse

Code Samples

import Compass from 'react-coord-compass';
<Compass coords={[0,0]}>
    //image, html, svg or whatever you want to follow you
    <div>
        <span>
            <span />
        </span>
    </div>
</Compass>

Installation

yarn add or npm install 'react-coord-compass'