You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Lists app backend provides the robust server-side functionality needed to support the [Lists app](https://lists.state-less.cloud)'s seamless user experience. Built on the React Server framework, this backend code enables real-time synchronization, data storage, and interaction with the frontend.
10
+
11
+
## Key Features
12
+
13
+
-**Real-Time Sync**: Achieve real-time updates and synchronization across clients.
14
+
-**Data Storage**: Efficiently store task lists, reminders, and user data.
15
+
-**Server-Rendered**: Utilize server-rendering capabilities for enhanced performance.
16
+
-**Scalable Architecture**: Build a scalable backend for handling multiple users.
17
+
-**Clean Codebase**: Based on the clean-starter repo for a structured foundation.
We welcome contributions from the community! Feel free to submit bug reports, feature requests, or pull requests to help make Lists even better.
44
+
## Learn More About React Server
45
+
46
+
Explore the power of [React Server](https://state-less.cloud), the framework used to develop this backend. With React Server, you can build reactive, server-rendered applications with ease.
47
+
48
+
## License
49
+
50
+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
The @state-less/clean-starter repository is designed to provide a starting point for developers exploring React Server. It includes essential backend components, utilities, and examples that illustrate the fundamental concepts and capabilities of React Server.
6
59
60
+
# React Server
7
61
React Server allows the creation of server-side React components using TSX, promoting a component-driven architecture for building robust and maintainable backend solutions. By using @state-less/clean-starter, developers can quickly get started with this innovative approach to full-stack development.
// A simple function that can be executed from the client side.
75
+
const increase = () => {
76
+
setState(count+1);
77
+
};
78
+
79
+
return (
80
+
// Simply pass down props to the client side.
81
+
<ServerSideProps
82
+
key={clientKey(`${key}-props`, context)}
83
+
count={count}
84
+
increase={increase}
85
+
/>
86
+
);
87
+
};
88
+
```
89
+
90
+
Use the familiar approach of React to build serverside applications in a declarative way. React has proven to be a successful framework for building large scale applications while keeping a clean state-management solution to provide reactive realtime enabled modern UIs. React favors a clean codebase due to its inherently modular structure and component driven approach. React allows you to cleanly abstract the complexity of modern applications using *states*, *hooks* and *components*.
91
+
92
+
React Server brings the same flexibility to the server side by giving you a Framework that handles TSX compilation, a small React engine that powers *hooks*, *states* and the lifecycle of *components*. It also abstracts data storage and data transportation into a common concept of *states*. Data is stored in *Stores* which can be accessed by components using *hooks* (`useState`). The `useState` hook provides reactivity and automatically re-renders the component when its value is updated using the setter. Data is transported by consuming server-side states / components on the clientside using the `useComponent` hook. We are using *GraphQL* as transportation layer to provide a robust foundation.
93
+
94
+
Developers familiar with **React** and JSX components `<Component hello="world" />` are able to jump right into developing full-stack applications. It really works well and provides a seamless reactive experience on both the backend and the frontend. States are synchronized to all connected clients using PUB / SUB.
95
+
9
96
For detailed documentation and in-depth guides, please visit the official website at [state-less.cloud](https://state-less.cloud).
10
97
98
+
## Explore Examples
99
+
Dive into real-world examples, like the [Lists App](https://lists.state-less.cloud), showcasing the potential of React Server.
100
+
101
+
## Key Features
102
+
103
+
-**Server-Side React**: Create server-side React components using TSX for efficient, component-driven backend development.
104
+
-**@state-less/clean-starter**: Jumpstart your project with essential backend components, utilities, and examples.
105
+
-**Explore the Future**: Harness the power of server-side real-time TSX components.
106
+
107
+
For comprehensive documentation and detailed guides, visit the official [state-less.cloud](https://state-less.cloud) website.
108
+
11
109
## Getting Started
12
110
13
111
### Backend
@@ -122,4 +220,6 @@ _Note: You can still override the provided client if you pass one in the options
122
220
123
221
That's it, your App is now powered by the same backend as the documentation under [state-less.cloud](https://state-less.cloud).
124
222
125
-
Happy Hacking!
223
+
---------
224
+
225
+
**License**: This project is under the **MIT License** - see the [LICENSE.md](/LICENSE.txt) file for details.
0 commit comments