sobs
React state management using observables. Modeled after SwiftUI. No boilerplate.
Table of contents
Install
IMPORTANT: You must be using TypeScript
npx create-react-app {app_name} --template typescript
npm i sobs
Documentation
Introduction: Observable Objects and Published
IMPORTANT: Before you start...
In your tsconfig.json
, set experimentalDecorators
to true
:
@ObservableObject
1. Create an
2. Create fields
Normal fields don't cause component updates when they change.
You must mark a field with @Published
for components to respond to its changes.
3. Create a store
4. Create components
ReactDOM.render, document.getElementById'root'
Environments & Environment Objects
Documentation coming soon