# SurgiJS > Compiled web components on JSX/TSX with fine-grained signals, SSR to declarative shadow DOM, a store and an accessible UI kit. Packages: `@surgijs/core` (runtime), `@surgijs/compiler` (Vite / esbuild plugin, required), `@surgijs/store` (state and remote data), `@surgijs/ui` (`` and other elements). Setup: `tsconfig.json` sets `"jsx": "react-jsx"` and `"jsxImportSource": "@surgijs/core"`; Vite uses `surgi()` from `@surgijs/compiler/vite`. Rules that differ from React: - A component function runs once. Props are getters: `const { step } = props`, then `{step}` in JSX and `step()` in code. - `useState` returns `[get, set]`; read `count()` outside JSX and template literals. - `useEffect(fn, deps?)` and `useMemo(fn, deps?)` take React-style arrays; `[]` runs once; without deps every signal read is tracked. No `useCallback`: functions are created once. - Lists use ` i.id}>{(item, index) => ...}`, conditions ``. - `defineComponent(tag, render, schema, options)` registers a custom element; schema keys become attributes (`maxItems` ↔ `max-items`) and properties. - Inside components use `use*` hooks; outside components (modules, stores) use `createSignal`, `createMemo`, `createEffect`. ## Table of Contents ### Guide - [Getting started](https://surgijs.github.io/surgijs/guide/getting-started.md) - [SurgiJS for React developers](https://surgijs.github.io/surgijs/guide/from-react.md) - [JSX to DOM](https://surgijs.github.io/surgijs/guide/jsx.md) - [Reactivity and hooks](https://surgijs.github.io/surgijs/guide/reactivity.md) - [@surgijs/store](https://surgijs.github.io/surgijs/guide/store.md) - [Components](https://surgijs.github.io/surgijs/guide/components.md) - [Control flow](https://surgijs.github.io/surgijs/guide/control-flow.md) - [SSR and hydration](https://surgijs.github.io/surgijs/guide/ssr.md) - [Astro](https://surgijs.github.io/surgijs/guide/astro.md) - [Next.js App Router](https://surgijs.github.io/surgijs/guide/nextjs.md) - [Performance](https://surgijs.github.io/surgijs/guide/performance.md) ### UI components - [UI components](https://surgijs.github.io/surgijs/ui.md) - [Design tokens](https://surgijs.github.io/surgijs/ui/tokens.md) - [Button](https://surgijs.github.io/surgijs/ui/button.md) - [Frameworks](https://surgijs.github.io/surgijs/ui/frameworks.md) ### Reference - [@surgijs/core](https://surgijs.github.io/surgijs/api.md) - [@surgijs/compiler](https://surgijs.github.io/surgijs/api/compiler.md) - [Live examples](https://surgijs.github.io/surgijs/examples.md)