Having done both for 20 years, I would recommend staying on the back end. The whole front-end ecosystem is a mess in so many ways, save yourself frustration and consider learning something new that you think you might like instead.
I think the worst is when frontend and backend is mixed with node js for example. Then there is no way out..