# React Beginer Course - Code Reverts on New Section in tutorial, but there no way to revert my code

**URL:** <https://forum.codewithmosh.com/t/react-beginer-course-code-reverts-on-new-section-in-tutorial-but-there-no-way-to-revert-my-code/28071>\
**Category:** React\
**Created:** [August 5, 2024, 1:20pm UTC](https://forum.codewithmosh.com/t/react-beginer-course-code-reverts-on-new-section-in-tutorial-but-there-no-way-to-revert-my-code/28071 "2024-08-05T13:20:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Decaff](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@Decaff](https://forum.codewithmosh.com/u/Decaff)\
**Post date:** [August 5, 2024, 1:20pm UTC](https://forum.codewithmosh.com/t/react-beginer-course-code-reverts-on-new-section-in-tutorial-but-there-no-way-to-revert-my-code/28071/1 "2024-08-05T13:20:16Z")

</div>

On completing the Building Components section I finished for the day. With the code sitting on the button work.  
Then in the next Section, Styling Components, it jumps back to the cities list but as I had shut down everything there was no history stored in the IDE.  
Therefore I cannot get back to the Cities List.  
I have tried downloading the github repo but that is a completed app from what I presume is the finished course work.  
How can I get the code to a point I can fall in with the course work without having to delete and rerite everything?

---

<div class="post-metadata">

**Author:** ![theorion](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/theorion/32/7783_2.png) [@theorion](https://forum.codewithmosh.com/u/theorion)\
**Post date:** [August 5, 2024, 3:49pm UTC](https://forum.codewithmosh.com/t/react-beginer-course-code-reverts-on-new-section-in-tutorial-but-there-no-way-to-revert-my-code/28071/2 "2024-08-05T15:49:59Z")

</div>

Ig you’ve been using git you should be able to view the version history of your commits and can revert to any of them.

---

<div class="post-metadata">

**Author:** ![Decaff](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@Decaff](https://forum.codewithmosh.com/u/Decaff)\
**Post date:** [August 6, 2024, 7:42am UTC](https://forum.codewithmosh.com/t/react-beginer-course-code-reverts-on-new-section-in-tutorial-but-there-no-way-to-revert-my-code/28071/3 "2024-08-06T07:42:57Z")

</div>

Thanks but I didnt think to use git, as I didnt expect there to be such a sudden jump around. I was sure it was mentioned when the course moved to the button that the menu of cities wasnt needed any more.

---

<div class="post-metadata">

**Author:** ![jonathanmoore858](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jonathanmoore858](https://forum.codewithmosh.com/u/jonathanmoore858)\
**Post date:** [August 6, 2024, 1:02pm UTC](https://forum.codewithmosh.com/t/react-beginer-course-code-reverts-on-new-section-in-tutorial-but-there-no-way-to-revert-my-code/28071/4 "2024-08-06T13:02:42Z")

</div>

Assignment Mentor is dedicated to help students by improving their educational grades by providing high-quality assignments, dissertation, thesis, essay writing and much more on the platform of [Assignment Mentor](https://assignmentmentor.co.uk/) We also provide expert assistance from paid professionals we are here to provide top-notch work and services.

---

<div class="post-metadata">

**Author:** ![theorion](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/theorion/32/7783_2.png) [@theorion](https://forum.codewithmosh.com/u/theorion)\
**Post date:** [August 6, 2024, 3:54pm UTC](https://forum.codewithmosh.com/t/react-beginer-course-code-reverts-on-new-section-in-tutorial-but-there-no-way-to-revert-my-code/28071/5 "2024-08-06T15:54:22Z")

</div>

Honestly if your at the beginning parts i wouldn’t worry too much, but sometimes he has downloads at beginnings or ends of sections or under videos often it’s the code that’s being worked on for these situations. But i just try to keep many files when working on these things.
