Grayish brown.
$ yarn add @trbl/react-mouse-info
import React from 'react';
import { MouseInfoProvider, withMouseInfo } from '@trbl/react-mouse-info';
const MyComponent = withMouseInfo(() => return <div>My Component</div>);
const App = () => {
return (
<MouseInfoProvider>
<MyComponent>
...
</MyComponent>
</MouseInfoProvider>
)
}
export default App;
To demo locally, clone the repo and
$ yarn install
$ npm run dev
$ open http://localhost:3000
All available props can be found via the references below:
MIT Copyright (c) TRBL, LLC