react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

Variable naming inconsistency in the tutorial documentation

Open ahermant opened this issue 3 years ago • 0 comments

Hi, I have just used the React tutorial, it is great! It helps a lot to learn the basic.

While working, I have spotted a small inconsistency on https://github.com/reactjs/reactjs.org/blob/main/content/tutorial/tutorial.md

When creating the buttons to move into the history, we are using a move variable that we are sending to jumpTo:

image

But jumpTo use step to make the moves:

image

I suggest that we switch the move and step variables of the render function to make the tutorial more understandable by beginners:

image

I can push a merge request for the documentation but I do not know how to change the source code linked by @gaearon on codepen: https://codepen.io/gaearon/pen/gWWZgR?editors=0010

Is there a way to do that?

ahermant avatar Jul 15 '22 22:07 ahermant