An open API service indexing awesome lists of open source software.

https://github.com/controlroom/show

Minimal React.js ClojureScript wrapper
https://github.com/controlroom/show

clojure react

Last synced: 3 months ago
JSON representation

Minimal React.js ClojureScript wrapper

Awesome Lists containing this project

README

          

[![Clojars Project](https://img.shields.io/clojars/v/controlroom/show.svg)](https://clojars.org/controlroom/show) [![CircleCI](https://circleci.com/gh/controlroom/show.svg?style=svg)](https://circleci.com/gh/controlroom/show)

**Show** is a minimal ClojureScript wrapper around React.js. Show operates under
the idea that less is more.

This is still a proof of concept and is undergoing breaking changes

## Simple usage

```clojure
(ns simple
(:require
[show.core :as show]
[show.dom :as dom]))

(show/defcomponent App [component]
(render [props state]
(dom/h1 (:heading props)))

(show/render-to-dom
(App {:heading "App"})
(.getElementById js/document "app"))
```

## License

Copyright © 2018 controlroom.io

Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.