Lots of people recommend learning to program by starting with fundamentals. Learn the basic language patterns and elements and work your way up to frameworks. You’ll have a stronger understanding of how things work.
I don’t think this is good advice anymore. By doing this you slow down your speed to market and what I’ve seen is more companies need speed than understanding. If I want to create a website I’m not going to start with HTML and CSS. I’m going to use a generator like React, Vue, or Hugo.
Having speed matters more and gives you more opportunities because deep knowledge is increasingly not necessary. Starting from the fastest option to get your product to market and working your way backward to the slowest works for products and education.