Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

SolidJS Framework Cheat Sheet

SolidJS Framework Cheat Sheet

Back to Web Development
Updated 2026-05-17
Next Topic: Svelte Cheat Sheet

SolidJS is a declarative JavaScript framework for building user interfaces through fine-grained reactivity—a system where signals directly drive DOM updates without a virtual DOM. Unlike React, Solid components run once as setup functions, establishing reactive connections that persist; signals, effects, and memos form a reactive graph where changes automatically flow to dependent nodes. Understanding that components don't re-run but reactive primitives do is fundamental: the JSX returned creates real DOM nodes with subscriptions that update surgically when dependencies change, delivering near-constant performance regardless of application size or complexity.

What This Cheat Sheet Covers

This topic spans 17 focused tables and 95 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Core Reactive PrimitivesTable 2: Store Management for Nested StateTable 3: Control Flow ComponentsTable 4: Lifecycle & CleanupTable 5: Component Patterns & PropsTable 6: Async Data LoadingTable 7: Context & Dependency InjectionTable 8: Rendering & HydrationTable 9: Reactivity UtilitiesTable 10: Refs & DOM AccessTable 11: Router & Navigation (SolidRouter)Table 12: SolidStart Features (Meta-Framework)Table 13: Advanced Reactivity ConceptsTable 14: Performance OptimizationTable 15: Development & ToolingTable 16: Ecosystem & UI LibrariesTable 17: Common Patterns & Best Practices

Table 1: Core Reactive Primitives

Signals, effects, and memos form the foundation of SolidJS reactivity. Each primitive tracks dependencies automatically—signals hold state, memos cache derived values, and effects run side effects when dependencies update.

PrimitiveExampleDescription
createSignal
const [count, setCount] = createSignal(0);
setCount(count() + 1);
• Creates a reactive getter-setter pair for state management
• calling the getter inside a tracking scope (JSX, effect, memo) registers a dependency
createEffect
createEffect(() => {
console.log(count());
});
• Runs a side effect whenever tracked signals change
• auto-subscribes to signals read inside the function
• ideal for DOM manipulation or external integrations
createMemo
const doubled = createMemo(() => count() * 2);
• Creates a cached derived value that recomputes only when dependencies change
• prevents redundant calculations by tracking upstream signals
createRoot
const dispose = createRoot((dispose) => {
const [s, setS] = createSignal(0);
return dispose;
});
• Establishes a top-level reactive scope outside components
• owns all nested computations and cleanup
• disposing the root cleans up all children

More in Web Development

  • shadcn-ui Component Library Cheat Sheet
  • Svelte Cheat Sheet
  • AngularJS Cheat Sheet
  • CSS Grid Layout Cheat Sheet
  • Nuxt.js Framework Cheat Sheet
  • SvelteKit Meta-Framework Cheat Sheet
View all 43 topics in Web Development