forked from fork-commit-merge/fork-commit-merge-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolidJSFramework.tsx
More file actions
73 lines (68 loc) · 2.69 KB
/
Copy pathSolidJSFramework.tsx
File metadata and controls
73 lines (68 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* eslint-disable @next/next/no-img-element */
const SolidJSFramework = () => {
return (
<div className='bg-primary flex items-center justify-center'>
<div className='max-w-2xl text-center'>
<div className='flex flex-wrap items-center justify-center'>
<img
src='https://img.shields.io/badge/Solid%20JS-blue?style=for-the-badge&logo=solid&logoColor=white'
alt='SolidJS'
className='mb-10 h-16 rounded-sm'
/>
</div>
<h2 className='mb-4 text-2xl font-bold'>What is Solid.js?</h2>
<p className='mb-4'>
Solid is a declarative JavaScript library for building user
interfaces, developed by Ryan Carniato. It focuses on fine grained
reactivity and compiler optimized rendering, enabling highly
performant applications with minimal overhead. Solid uses JSX for
templating, but unlike virtual DOM frameworks, it compiles templates
to real DOM updates at build time.
</p>
<h2 className='mb-4 text-2xl font-bold'>Why Use Solid.js?</h2>
<p className='mb-6'>
Solid is ideal for developers seeking top-tier performance without
sacrificing modern developer ergonomics. With no virtual DOM and a
highly efficient reactivity model, Solid delivers blazing-fast
rendering and extremely low memory usage. It's especially well-suited
for performance-critical applications, interactive UIs, and projects
that value fine control over reactivity.
</p>
<h4 className='my-4 text-2xl font-bold'>
Solid.js Best Practices and Coding Style Guide
</h4>
<ul>
<li>
- Leverage Solid’s reactive primitives like `createSignal`,
`createEffect`, and `createMemo`.
</li>
<li>
- Avoid unnecessary state nesting to keep reactivity fine-grained.
</li>
<li>
- Use JSX as the templating language, but remember it compiles to
DOM instructions.
</li>
<li>
- Minimize the use of external state management libraries. Solid's
built-in reactivity is often sufficient.
</li>
<li>
- Prefer composable functions and reusable components for clean,
modular code.
</li>
</ul>
<br />
<a
target='_blank'
rel='noopener noreferrer'
href='https://docs.solidjs.com/'
className='text-xl font-bold underline hover:text-blue-400'
>
Solid.js - Official Documentation
</a>
</div>
</div>
)
}
export default SolidJSFramework