As a front end developer just 2 years into my career, I am starting to be confused by the job industry nowadays where the job recruiters are looking for people who had experience with React or Angular for X amount of years. I have read what people wrote online saying that do not focus too much on frameworks as they come and go, rather focus on picking up OOP languages like Java or Python.
For front end developers, this is a very difficult situation because if frameworks come and go, that means our ROI learning and working on those frameworks will be disappointing. So would that mean back end developers will have an edge in the industry because what they learn (database, backend OOP languages)would still be practical 10 years down the line?
Should I switch my job to become a backend developer then? Or rather instead of focusing on learning frameworks, I should just focus on learning a backend programming language then (either Python, Java, Golang)? Really need advise as a newbie programmer here.