Skip to content

Commit

Permalink
docs: add SSR example
Browse files Browse the repository at this point in the history
  • Loading branch information
artalar committed Jul 17, 2023
1 parent f94c9cc commit 80587e5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/src/content/docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ title: Examples
description: Complex examples of Reatom state manager
---

### Base React template

https://github.com/artalar/reatom-react-ts

### Data fetching and React

https://codesandbox.io/s/reatomasync-9t0x42?file=/src/model.ts

### Data fetching and Svelte
### Next.js + Reatom

https://svelte.dev/repl/0613e23e6aa74246afad6d726d6c5a33?version=3.55.0
A close-to-real-life example of SSR (Server-Side Rendering) with API data hydration. The cool thing is that the code is almost isomorphic. You can check [this commit](https://github.com/artalar/reatom-nextjs/commit/ca0099bcddc0fbd5bc8c76eeb160f828838453d7) to understand how simple it is to turn on SSR for an existing code with Reatom.

https://github.com/artalar/reatom-nextjs

### Migration from RTK

Expand All @@ -31,6 +29,10 @@ This example shoes how to use [atomization](https://www.reatom.dev/guides/atomiz

https://codesandbox.io/s/reatom-react-atomization-k39vrs?file=/src/App.tsx

### Data fetching and Svelte

https://svelte.dev/repl/0613e23e6aa74246afad6d726d6c5a33?version=3.55.0

### All codesandboxes

You could find more interesting examples in our [sandbox folder](https://codesandbox.io/dashboard/sandboxes/reatom?workspace=e7923738-fe21-45f8-9cee-424de14adf18)

1 comment on commit 80587e5

@vercel
Copy link

@vercel vercel bot commented on 80587e5 Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.