Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.03 KB

File metadata and controls

43 lines (36 loc) · 1.03 KB
title defcomp
scope module
kind reference
category reference
aliases
defcomp
respo.core/defcomp
defcomp macro
component definition
component component
entry_for
defcomp
define component
component macro
props component

defcomp

Define a component

Use defcomp to declare a reusable component that receives props and renders virtual DOM.

📚 Documentation Index

defcomp comp-demo (content)
  div
    {}
      :class-name "|demo-container"
      :style $ {}
        :color :red
    <> content

defcomp is a Macro(https://github.com/Respo/respo.calcit/blob/master/compact.cirru#L1295) transforming code to another function with effects extracted.