Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

About

Leap Motion and React.js

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-leap Build Status npm version

Leap Motion for ReactJS

Quick start

Setup LeapProvider:

import React from 'react';
import { LeapProvider } from 'react-leap'
import MyApp from './myapp'

const AppShell = () => (
  <div>
    <LeapProvider options={{enableGestures: true}}>
      <MyApp />
    </LeapProvider>
  </div>
)

export default AppShell

Connect Leap data to your app (myapp.js):

import React from 'react'
import { withLeapContainer } from 'react-leap'

const MyApp = ({frame}) => {
  const hands = frame.hands
  
  // process data from frame

  return (
    <div>
    </div>
  )
}

export default withLeapContainer(MyApp)

About

Leap Motion and React.js

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages