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
All atom types work exactly like UseState - they return the current value, a setter function, and a functional setter. The key difference is their scope and external API accessibility.
316
+
317
+
### External API Integration
318
+
319
+
The UseConfig and UseData atoms automatically create REST endpoints:
320
+
321
+
-`GET /api/config` - Returns all config atom values
322
+
-`POST /api/config` - Updates (merges) config atom values
323
+
-`GET /api/data` - Returns all data atom values
324
+
325
+
This makes Tsunami applications naturally suitable for integration with external tools, monitoring systems, and AI agents that need to inspect or configure the application.
326
+
283
327
## Style Handling
284
328
285
329
Tsunami applications use Tailwind v4 CSS by default for styling (className prop). You can also define inline styles using a map[string]any in the props:
0 commit comments