Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM Documentation example has Errors #4

Open
Jomanw opened this issue May 16, 2019 · 2 comments
Open

NPM Documentation example has Errors #4

Jomanw opened this issue May 16, 2019 · 2 comments

Comments

@Jomanw
Copy link

Jomanw commented May 16, 2019

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 :)

@ChocolateLoverRaj
Copy link

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.

@yodahuang
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants