[cljsjs/react-flexbox-grid "1.0.0-0"] ;; latest release
This jar comes with deps.cljs
as used by the Foreign Libs feature
of the ClojureScript compiler. After adding the above dependency to your project
you can require the packaged library like so:
(ns application.core
(:require cljsjs.react-flexbox-grid))
You also need to include the CSS. If you are using sass4clj it'll look like this:
@import "cljsjs/react-flexbox-grid/development/react-flexbox-grid.inc";
for the development version of the CSS or
@import "cljsjs/react-flexbox-grid/production/react-flexbox-grid.min.inc";
for the production minified version.
You can use it like this:
[:> (.-Grid js/ReactFlexboxGrid)
[:> (.-Row js/ReactFlexboxGrid)
[:> (.-Col js/ReactFlexboxGrid) {:xs 6 :md 3} "Hello World!"]]]