Skip to content
Kevin Webster edited this page May 26, 2014 · 3 revisions

WikiOverview

Show is a React.js wrapper, implemented in ClojureScript.

Show was created out of the desire to extract what we felt were the best parts of Facebook's React library. We love the idea of diffing a virtual dom, composition of components, and unidirectional data flow.

Show tries to simplify the React API to the essentials. Show is to React in these ways:

  • Show retains the same lifecycle process
  • Component state can be changed, however props are not allowed to be mutated by any children components. If props need to change, there must be some communication back to the originator of the data
  • Props are the only data that can be passed into a new component

Show's implementation is very simple, and relies on React as much as possible.

Quick API:

Create
[defclass](API Documentation#defclass)

Lifecycle Props
[mixins](API Documentation#mixins)

Lifecycle Functions
[render](API Documentation#render)
[initial-state](API Documentation#initial-state)
[default-props](API Documentation#default-props)
[will-mount](API Documentation#will-mount)
[did-mount](API Documentation#did-mount)
[will-receive-props](API Documentation#will-receive-props)
[should-update](API Documentation#should-update)
[will-update](API Documentation#will-update)
[did-update](API Documentation#did-update)
[will-unmount](API Documentation#will-unmount)


Getters
[get-node](API Documentation#get-node)
[get-state](API Documentation#get-state)
[get-props](API Documentation#get-props)

Modifiers
[reset!](API Documentation#reset-bang)
[assoc!](API Documentation#assoc-bang)
[update!](API Documentation#update-bang)
[force-update!](API Documentation#force-update-bang)

Display
[render-component](API Documentation#render-component)

Utils
[class-map](API Documentation#class-map)
[css-transition-group](API Documentation#css-transition-group)

Clone this wiki locally