What it does
This primer helps you check the core ideas and API differences when writing, reviewing, or migrating Solid 2.0 code. It covers common mistakes, such as destructuring props instead of reading them, passing accessors instead of values, mixing computation and side effects in createEffect, or updating stores outside their draft. It includes a mapping from APIs used in 1.x and guidance on when to use tools such as createSignal, createMemo, action, and <Loading>. It also covers async work, events, form input, and lists.
When it helps
Use it when learning Solid, or when generating or checking 2.0 code based on experience with React or Solid 1.x. It can help you find replacements for older APIs and choose how to display async data.
Example requests
- “Rewrite this component using Solid 2.0 patterns.”
- “Summarize what needs to change to migrate this Solid 1.x code to 2.0.”
- “Choose an API for displaying async data, following this example.”
Notes
This guide covers Solid 2.0 (solid-js 2.x and @solidjs/web). It advises checking unfamiliar API names in node_modules/solid-js/CHEATSHEET.md.
This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.