# Server-Side Rendering

Nano Stores support SSR. Use standard strategies.

```js
if (isServer) {
  $settings.set(initialSettings)
  $router.open(renderingPageURL)
}
```

You can wait for async operations (for instance, data loading via isomorphic `fetch()`) before rendering the page:

```jsx
import { allTasks } from 'nanostores'

$post.listen(() => {}) // Move store to active mode to start data loading
await allTasks()

const html = ReactDOMServer.renderToString(<App />)
```

***

*Imported from the [Nano Stores README](https://github.com/nanostores/nanostores/blob/1.5.5/README.md#server-side-rendering) for version 1.5.5. Improve this page there.*
