react_joystick icon indicating copy to clipboard operation
react_joystick copied to clipboard

NPM Documentation example has Errors

Open Jomanw opened this issue 6 years ago • 2 comments

Hi,

in the example code on the NPM website, there are a few issues with the example code: 1.) in the first line, you wrote 'Joystick', where the S should be capitalized (to make it 'JoyStick') 2.) in the render function, 'joyOptions' should be changed to 'options'

Thanks for making this! It was helpful for my project :)

Jomanw avatar May 16 '19 02:05 Jomanw

Also, it says import Joystick from react-joystick, but it should be 'react-joystick' (in quotes). I think the best solution is to make a code sandbox to be sure the example actually works.

ChocolateLoverRaj avatar Dec 12 '21 20:12 ChocolateLoverRaj

Hi, I haven't been working on JavaScript for quite some time now. But feel free to send a pr.

yodahuang avatar Jan 25 '22 21:01 yodahuang