Most modern front-end JavaScript frameworks provide some sort of support for component based development. This is an incredibly important step in the direction of development for the web. Components provide a way to write small parts with a consistent API that can easily be orchestrated as part of a larger screen, application or system.
Component based development isn’t just the future of the web, though. It’s what you should be doing now, in any modern UI / application framework on the web.