React will teach you modern javascript that developers are using today, position you to be an immediate impact person on most React teams and as you dig into the internals of how it all works will make you a pretty good javascript developer in time.
Java is fine, but I'd also argue that C# might be a bit better, it seems like at least in my immediate area C# is more popular than Java at this point and the core concepts are obviously transferable between languages. I think C# has the edge with its tooling too, you'll bang your head against the keyboard a lot more trying to configure Java IDE's and servers than you will with Visual Studio and maybe Azure for instance.