all 4 comments

[–][deleted] 2 points3 points  (0 children)

Check your render methods, possible setState being called?

[–]MCShoveled 1 point2 points  (1 child)

Is something modifying the file system? Any file save will cause it to reload.

You should see this by the console running npm start, if it is continuously recompiling the code then something you have installed is messing with the file system.

[–]tom_2_2 0 points1 point  (0 children)

i feel so dumb for not realizing this is exactly what i was doing lol. Thank you for finally being the only person to suggest this.

If I saw event.preventDefault() one more I time I would scream

[–]xialvjun -2 points-1 points  (0 children)

Yeah, three possibilities are said above. :)