react_joystick
react_joystick copied to clipboard
NPM Documentation example has Errors
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 :)
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.
Hi, I haven't been working on JavaScript for quite some time now. But feel free to send a pr.