[cljsjs/reactstrap "7.1.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.reactstrap]))
The components can be accessed using the js/Reactstrap
namespace. Reagent example:
[:> js/Reactstrap.Alert {:color "primary"} "Hello from Reactstrap"]
Additionally, this library requires some React Addons. To add React Addons to your project, require
cljsjs/react-with-addons
. Also ensure that you have excluded all other versions of React. If you don't
exclude other versions of React then the Addons will not be included in the build and you will get
errors when using Reactstrap.
Documentation for the Reactstrap lib can be found here