I mean I'm a generalist, and if you look at my 20 years in the industry, I'm a generalist because of the trail of work I've left behind; as in work, all of which needed to happen. For example, in the 2000s, we mostly used PHP and MySQL, today, it's very different. So being a specialist with, let's say, 10+ years experience, would be quite difficult. I'm sure even the C++ people can say C++ has changed a lot in 20 years(?) and are doing things radically different today?
How could I be a React specialist with 20 years in the industry? Forget the past?
In some sense, it's almost an attitude thing, which also reflects in what you've chosen to do in your career. As an extreme example, I have interviewed individuals who made it clear that they were a React expert and would not be willing to work on any legacy services that used jquery, any light backend work, anything.
... and wait for "junior specialist in everything" :-)