lilactown / helix

A simple, easy to use library for React development in ClojureScript.
Eclipse Public License 2.0
624 stars 52 forks source link

docs/creating-components: explain `defcomponent` and provide example #125

Closed rome-user closed 1 year ago

rome-user commented 1 year ago

I have recently stumbled upon the need to create class components with Helix, because I wanted to create an error boundary. I've known that the Class Components documentation has been WIP for a while. So I have decided to provide a brief explanation of the defcomponent macro and provide a simple implementation of an error boundary.