|
1 | 1 | --- |
2 | | -title: Intro to Solid |
| 2 | +title: Introduction to Solid |
3 | 3 | order: 3 |
4 | 4 | --- |
5 | 5 |
|
6 | | -[TODO: |
7 | | -- Input on what should be included in a Solid intro |
8 | | -- Answer questions such as: (maybe) |
9 | | - - What are the key features of Solid? |
10 | | - - Why use |
11 | | - - What are the benefits of using Solid? |
12 | | - - Ecosystem |
13 | | -] |
| 6 | +Solid is a declarative JavaScript framework for building fast, reactive user interfaces. |
| 7 | +With its fine-grained reactivity system and compilation-driven approach, Solid delivers exceptional performance while maintaining a developer-friendly experience similar to React. |
14 | 8 |
|
15 | | -Solid is a modern JavaScript framework designed to build responsive and high-performing user interfaces. |
16 | | -It prioritizes a simple, yet predictable, developer experience, making it a great choice for developers of all skill levels. |
| 9 | +## What Makes Solid Different? |
17 | 10 |
|
18 | | -## What is Solid? |
| 11 | +Solid takes a unique approach to building web applications through **fine-grained reactivity**. Unlike frameworks that rely on a Virtual DOM, Solid compiles your components into optimized JavaScript that updates the real DOM directly—only changing what needs to change, when it needs to change. |
19 | 12 |
|
20 | | -As a JavaScript framework, Solid embraces reactivity and fine-grained updates. |
21 | | -What this means is that Solid can efficiently update the user interface by only re-rendering the parts of the UI that have changed, rather than the entire page. |
| 13 | +This means your applications are faster, more memory-efficient, and more responsive out of the box. |
22 | 14 |
|
23 | | -Traditionally, when a change occurs, the entire page would need to reload to display the updated information. |
24 | | -With Solid's fine-grained reactive system, updates are only applied to the parts of the page that need to be updated. |
25 | | -This decreases work and can result in faster load times as well as a smoother user experience overall. |
| 15 | +## Core Principles |
26 | 16 |
|
27 | | -## The mental model |
| 17 | +- **Fine-Grained Reactivity**: Solid tracks dependencies at the most granular level, ensuring only affected parts of your UI update when data changes. |
| 18 | +- **No Virtual DOM**: Direct DOM updates eliminate diffing overhead and improve performance. |
| 19 | +- **Compilation-Based**: Components are compiled at build time into highly optimized JavaScript with minimal runtime overhead. |
| 20 | +- **Familiar Syntax**: JSX-based components make Solid approachable for developers coming from React. |
| 21 | +- **TypeScript First**: Built with TypeScript support from the ground up for a robust development experience. |
28 | 22 |
|
29 | | -[TODO: Simple explanation of the mental model behind Solid] |
| 23 | +## Why Choose Solid? |
30 | 24 |
|
31 | | -## Where to go next |
| 25 | +### Performance |
32 | 26 |
|
33 | | -- [Quick Start Guide](https://solidjs.com/docs/getting-started) |
34 | | -- [Reactivity Overview](/concepts/reactivity/) |
35 | | -- [Component Overview](/concepts/components/) |
| 27 | +Solid consistently ranks at the top of JavaScript framework benchmarks. By eliminating the Virtual DOM and leveraging true reactivity, Solid achieves rendering speeds that rival vanilla JavaScript. |
| 28 | + |
| 29 | +### Developer Experience |
| 30 | + |
| 31 | +Write components using familiar JSX syntax while enjoying a simple, predictable API. Solid's reactivity primitives (`createSignal`, `createEffect`, `createMemo`) are intuitive and powerful, eliminating the need for complex state management libraries. |
| 32 | + |
| 33 | +### Small Bundle Size |
| 34 | + |
| 35 | +Solid's core is only a few kilobytes, making it ideal for performance-critical applications and mobile-first development. |
| 36 | + |
| 37 | +### Modern Features |
| 38 | + |
| 39 | +- Built-in support for Server-Side Rendering (SSR) |
| 40 | +- Streaming and progressive hydration |
| 41 | +- Strong TypeScript integration |
| 42 | +- Flexible routing and state management |
| 43 | +- Growing ecosystem of tools and libraries |
| 44 | + |
| 45 | +## Who Is Solid For? |
| 46 | + |
| 47 | +Solid is perfect for: |
| 48 | +- Developers seeking maximum performance without sacrificing developer experience |
| 49 | +- Teams building complex, interactive applications |
| 50 | +- Projects where bundle size and runtime efficiency matter |
| 51 | +- Developers familiar with React looking for a more performant alternative |
| 52 | + |
| 53 | +## Getting Started |
| 54 | + |
| 55 | +Ready to build with Solid? Here's where to go next: |
| 56 | + |
| 57 | +- [Quick Start Guide](/getting-started/quick-start) - Build your first Solid app |
| 58 | +- [Understanding Reactivity](/concepts/reactivity) - Learn Solid's reactive primitives |
| 59 | +- [Components Guide](/concepts/components) - Master Solid components |
| 60 | +- [Tutorial](/tutorial/introduction) - Step-by-step interactive learning |
| 61 | + |
| 62 | +Welcome to Solid—let's build something fast! 🚀 |
0 commit comments