Taking that in reverse order, my advice is to learn the basics. Build some stuff without frameworks or libraries and get in touch with the platform below you. That background will always be valuable. It'll let you weigh frameworks and tradeoffs much more effectively, and will allow you to "punch out" when you realize you need to.
I'm excited that Web Components are (finally!) bringing web development up the stack a bit. There's going to be a fascinating world of interop and modern-assumption-only web development in the next few years. Rob Dodson's Web Components Everywhere gives you a flavour for that