This new JS framework wants you to quit React…
By Fireship
Key Concepts
- JavaScript Fatigue: The overwhelming feeling of having too many JavaScript libraries and frameworks to choose from.
- Inferno: A fast JavaScript UI framework created by Dominic Galloway.
- React: A popular JavaScript library for building user interfaces.
- Svelte: A compiler-driven JavaScript framework.
- Ripple: A new TypeScript UI framework based on a superset of JSX, developed by Dominic Galloway.
- Compiler-driven view library: A framework that compiles code at build time rather than relying on a runtime virtual DOM.
- JSX: A syntax extension for JavaScript that looks similar to XML.
- Component keyword: Used in Ripple to define components.
- Statements vs. Expressions in JSX: Ripple allows statements (like
ifandfor) directly within its JSX-like syntax, unlike React's JSX which primarily uses expressions. - Scoped and localized CSS: Ripple's
styleelement allows for CSS that is automatically scoped to the component it's defined in. - Reactivity: The mechanism by which changes in data automatically update the UI.
trackfunction: Used in Ripple to create reactive values.@symbol: Used in Ripple to read or write reactive values.- Fine-grain rendering: A rendering approach where only the necessary parts of the DOM are updated.
- DOM (Document Object Model): A programming interface for HTML and XML documents.
- Prettier and ESLint: Code formatting and linting tools.
- VS Code extension: A plugin for the Visual Studio Code editor.
- TypeScript integration and type-checking: Support for TypeScript, a statically typed superset of JavaScript.
- Kira: An AI IDE by AWS for complex projects, utilizing spec-driven development.
- Spec-driven development: An approach where development starts with defined requirements and specifications before coding.
- Requirements MD file: A markdown file used to define user stories and acceptance criteria in Kira.
- Design dock: A document outlining architecture plans and testing strategies in Kira.
- Implementation file: Where AI-generated code tasks are outlined and progress is tracked in Kira.
- Agent hooks: In Kira, these trigger automated jobs on specific events.
Ripple: A New Compiler-Driven UI Framework
The video introduces Ripple, a new TypeScript framework for building user interfaces, created by Dominic Galloway. Galloway is known for his previous work on Inferno, a fast React alternative, and his contributions to the React and Svelte core teams. Ripple is described as a "compiler-driven view library for the web based on a superset of JSX." It aims to combine elements of Svelte and React, with a touch of SolidJS.
Key Features and Syntax of Ripple
- Component Definition: Components are defined using the
componentkeyword. - JSX-like Syntax with Statements: Ripple utilizes a syntax similar to JSX, but with a significant difference: it allows the use of statements (e.g.,
ifstatements,forloops) directly within the template. This contrasts with React's JSX, which primarily uses expressions. - Native Scoped CSS: The
styleelement in Ripple provides native CSS styling that is automatically scoped and localized to the component where it is defined, preventing style conflicts. - Advanced Reactivity System: Ripple's reactivity is managed through the
trackfunction. Values created withtrackcan change over time. To read or write these reactive values, they are prepended with the@symbol. - Fine-Grain Rendering: Ripple employs fine-grain rendering, meaning it surgically applies mutations to the DOM only where necessary, leading to efficient updates.
Development Tooling and Ecosystem
Despite being a new framework, Ripple already boasts robust tooling:
- Prettier and ESLint Support: Integration with popular code formatting and linting tools.
- VS Code Extension: A dedicated extension for Visual Studio Code provides syntax highlighting and IntelliSense for Ripple code.
- Full TypeScript Integration: Comprehensive support for TypeScript, including type-checking, ensuring code quality and developer productivity.
Kira: AI-Powered IDE for Complex Projects (Sponsor Segment)
The video also highlights Kira, an AI IDE developed by AWS, presented as the sponsor. Kira is designed for larger, more complex projects and employs a methodology called "spec-driven development."
Spec-Driven Development with Kira
- Requirements Definition: Development begins with a requirements markdown file (
.md) where user stories and acceptance criteria are defined. - Design Documentation: Kira then generates a design document that outlines architectural plans and testing strategies.
- Implementation and Task Management: These specifications are merged into an implementation file. Here, each task is clearly defined, specifying what code the AI should write and allowing for progress tracking.
- Automation with Agent Hooks: Kira allows for the automation of repetitive tasks by setting up "agent hooks." These hooks can be triggered by specific events, such as automatically updating documentation whenever a file is saved.
Kira is particularly beneficial for teams where design consistency and code quality are paramount. The video encourages viewers to try Kira for free or participate in the Kurowen hackathon for access to premium features.
Conclusion and Takeaways
The video revisits the concept of "JavaScript fatigue," suggesting that while the landscape has evolved, new frameworks continue to emerge. Ripple, with its compiler-driven approach, statement-based JSX, scoped CSS, and advanced reactivity, presents an interesting alternative in the UI framework space. Its creator's background in prominent frameworks like React and Svelte lends credibility to its potential.
The sponsor segment introduces Kira as a tool that leverages AI to streamline complex development workflows through spec-driven development, emphasizing collaboration and code quality. The overarching message is that while the tools and approaches in software development are constantly changing, innovation continues to drive efficiency and new possibilities.
Chat with this Video
AI-PoweredLoad the transcript when you're ready to chat so the initial page stays lighter.
Related Videos

The After Show: The Barefoot Witness
ABC News

Shocking video shows moment paramedics are hit by Israel in 'double-tap' strike
Sky News

Middle East: Deep mistrust clouds US-Iran negotiations • FRANCE 24 English
FRANCE 24 English

The AVWAP Setup Every Swing Trader Should Master | Brian Shannon, 35+ years Trading
TraderLion

BREAKING: Huge US-Iran News Dropping Today!
The Economic Ninja

S$4,000 for a 1945 Singapore map? You’ll find it at this quaint shop in Bras Basah
CNA

Trump’s 3,711 Trades Point to Several Stock-Market Strategies
Bloomberg Television