My 2015 react code did work in 2017 with node/packages changing so much. My 2017 react code in 2019 didn't run.
Things I've written in php in 2004 still work today.
Things I've written in php in 2004 still work today.
It took less than 2 hours of effort to update all of the code to work with the latest version.