Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Age of multi-framework frontends

Age of multi-framework frontends

Multi-framework Frontend allows developers to choose from a variety of frameworks to build web applications, leading to a more flexible and modular approach. This talk explores the benefits and challenges of this approach, including strategies for maintaining code quality and consistency across projects. We'll discuss how to leverage the strengths of multiple frameworks to create innovative solutions and the importance of staying up-to-date with the latest trends and best practices. Learn how to thrive in the Age of Multi-Framework Frontends.

Marko Arsić

April 08, 2023
Tweet

More Decks by Marko Arsić

Other Decks in Programming

Transcript

  1. Marko Arsić Founder and CEO @ HypeTech Founder of HypeTech

    Education Independent Tech Consultant Lecturer @ ReactWeek.dev Helping companies set up teams and standardize the development process github.com/marsicdev
  2. Overview • Need for frameworks • Combining frameworks • Multi-framework

    frontends • Tools and Ecosystem • Cross platform state management • Benefits and drawbacks
  3. Frameworks provide an infrastructure that has already figured out the

    low-level details, allowing the developer to focus on the specific project details
  4. Uses all the best practices from the past, with the

    ability to evolve in the future
  5. Of Course, you can archive the same thing with good

    architecture and modularity of single framework
  6. Often apps are using one specific UI library (React, Vue,

    Svelte, etc.) to define components and build the experiences for the users
  7. Vite Next Generation Frontend Tooling Get ready for a development

    environment that can finally catch up with you.
  8. Astro Build the web you want Astro is the all-in-one

    web framework designed for speed. Powered by your favorite UI components and libraries.
  9. Asto helps us optimize our applications by ensuring that we

    are not using more JavaScript than necessary
  10. The output of islands is progressively enhanced HTML, with more

    specificity around how the enhancement occurs
  11. Rather than a single application being in control of full-page

    rendering, there are multiple entry points
  12. The script for "islands" of interactivity can be delivered and

    hydrated independently, allowing the rest of the page to be just static HTML
  13. Multiple islands can exist on a page, and an island

    always renders in isolation, which means that each island can use any UI framework
  14. Vue provides a reactive API, following the conventions of Actions

    --> State --> View in a similar style to Redux
  15. All of these are valid ways of fixing the state

    management issue we need a common solution that works for all the UI libraries
  16. nanostores A tiny state manager for React, React Native, Preact,

    Vue, Svelte, and vanilla JS. It uses many atomic stores and direct manipulation.
  17. • They’re lightweight. bare minimum JS (less than 1 KB)

    with zero dependencies. • They’re framework-agnostic.
  18. You can’t do anything and everything with a single framework

    Some may not be a good fit for certain applications