AI summary by TwinMind

The Biggest React Framework You've Never Heard of

Theo - t3․gg

20m 29s

Framework Introduction and Discovery

  • ICE: React framework by Alibaba, ~20K GitHub stars
  • Third major React framework alongside Next.js and Remix
  • Discovered via Salty's Twitter post showing inline directives syntax
  • Built specifically for Chinese market with mobile-first focus

Sponsor Segment - AG Charts

  • AG Charts by AG Grid creators
  • JavaScript charting library supporting modern frameworks + vanilla JS
  • Chart types: bar, line, chord graphs, pyramids, radial grids
  • MIT licensed open source, 90%+ Fortune 500 companies use AG Grid
  • Free for most users, paid tiers available

Documentation and Translation Challenges

  • No English translation available, used Google Translate
  • ICE 3: Application development framework based on React
  • Built-in best practices: project config, state management, data requests, permissions
  • Supports: Web, TypeScript, CSS modules, PostCSS
  • Application modes: SPA, SSR, static builds
  • Focus on mobile web (larger concern in Chinese markets)

Framework Architecture and Routing

  • Directory structure: pages/about/home with global layout components
  • Conventional routing auto-generated from file structure
  • Uses React Router under the hood (explains Outlet functionality)
  • Routing patterns borrowed from Next.js and Remix
  • Micro frontend support built-in from start (unique among React frameworks)

JSX Plus Extensions

  • Problem: Too many curly braces + JS syntax reduces readability
  • JSX Plus introduces static template features for compilation optimization
  • Extensions:
    • x-if / x-else for conditional rendering
    • x-for for loops
    • x-memo for caching/never rerun
    • Slot scopes for separate rendering
  • Concern: x-if + x-else relationship not nested, harder to refactor

State Management - ICE Store

  • Simple, familiar API with integrated async processing
  • Class component support for legacy projects
  • TypeScript support
  • Similar to Zustand/XState store patterns
  • Credits Diego's Constate work as inspiration
  • Redux with Immer integration available

Testing and Mocking

  • Minimal network mocking solution
  • Mock files with @mock annotation + mode/path specification
  • Very convenient compared to other mocking approaches

Package Ecosystem

  • Lightweight dependencies: ice-runtime, react, react-dom
  • 113 packages in @ice npm organization
  • Packages: ice-appear, ice-bundles, ice-canvas, ice-form, ice-hooks, etc.
  • Own JSX runtime implementation
  • Heavy use of React's unstable features (unstable-activity, offscreen)

Data Fetching - Request System

  • Own React Query clone focused on URLs
  • useRequest hook with manual triggering by default (not auto-fetch)
  • Designed for user-triggered actions vs automatic data fetching
  • Configuration options for GET/POST requests
  • Business logic more likely manually triggered

Build System and Rendering

  • Static Site Generation (SSG) by default
  • SSR opt-in via config: ssr: true
  • Route-level control: some routes SSR, others SSG
  • Code splitting built-in
  • TypeScript checker disabled in build (run separately)
  • Manual enable/disable of syntax features

Data Loading Patterns

  • Data loader pattern similar to Remix
  • useData and data loader functions
  • Defer helper for streaming
  • Await blocks for promise handling from server
  • Promises serialized to client, awaited with helper components
  • Higher-order component pattern for response handling

Advanced Features

  • Element visibility monitoring (ice-appear)
  • Canvas porting utilities
  • Form handling systems
  • Hook libraries
  • Docusaurus integration
  • Service mocking capabilities

Development Experience

  • Hot reloading works properly
  • File-based routing with automatic route generation
  • ESLint/StyleLint integration (some template config issues noted)
  • Good TypeScript support throughout

International Development Perspective

  • Vue historically stronger in Chinese markets due to better internationalization
  • ICE framework designed for non-English speakers
  • Balance of documentation + good defaults to prevent wrong patterns
  • Addresses React's complexity through opinionated patterns
  • Western frameworks could learn from this approach

TwinMind

Get summaries like this for your own meetings

TwinMind takes notes in the background during meetings, lectures, and calls, then writes the summary for you.

Free plan to get started

No bot joins your calls

Phone, desktop & Chrome apps

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome

Your next meeting, summarized like this

TwinMind listens in the background and turns meetings, lectures, and calls into searchable notes you can chat with. Start free.

Available on phone, desktop & Chrome