| title | defcomp | |||||
|---|---|---|---|---|---|---|
| scope | module | |||||
| kind | reference | |||||
| category | reference | |||||
| aliases |
|
|||||
| entry_for |
|
Use defcomp to declare a reusable component that receives props and renders virtual DOM.
📚 Documentation Index
- ← Back to README
- 🤖 Respo-Agent Guide - Component patterns & debugging
- API Overview
- Beginner Guide
- Related APIs:
div|defeffect|create-element
defcomp comp-demo (content)
div
{}
:class-name "|demo-container"
:style $ {}
:color :red
<> contentdefcomp is a Macro(https://github.com/Respo/respo.calcit/blob/master/compact.cirru#L1295) transforming code to another function with effects extracted.