Stop building "Dumb" UI components. Most libraries give you the skin (CSS), but leave the brain (logic) to you... Every time you need a loading state, you're back to manual useState and ternary hell. ❌ const [loading, setLoading] = useState(false) ❌ Manually adding the <Loader /> icon ❌ Handling the success/error text swap I’m building fscomp to fix this. Here is a preview of the Button Atom with built-in state intelligence. 🤔 Why this is different: - Built-in Logic: Pass state="loading" or "success" and the component handles icons, text-swaps, and disabling automatically. Take a look at the FSComp Button atom preview below. 🧑💻 <Button state="loading" loadingText="Saving..." /> Status: WIP. Currently refining the core atoms before the first 100 slots open. Devs: Would you use a library that handles micro-states for you? 👇 #BuildingInPublic #ReactJS #TailwindCSS #UIUX
“Skin without the brain” is a great way to put it. If this removes repeated loading/success/error boilerplate while staying flexible, I’d definitely try it.
Insightful. Must have these default behaviours with actionable items.
Hi developers, this UI library is live now at https://fysk.dev If you liked it, Don't forgot to - Star on GitHub: https://github.com/ameghcoder/fysk