Remove react-with-addons mentition

This commit is contained in:
Juho Teperi 2019-01-31 20:39:21 +02:00 committed by GitHub
parent be26c9eeaf
commit 3c30e0a4ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,13 +43,9 @@ To use Reagent in an existing project you add this to your dependencies in `proj
[![Clojars Project](http://clojars.org/reagent/latest-version.svg)](http://clojars.org/reagent) <br>
[![CircleCI](https://circleci.com/gh/reagent-project/reagent.svg?style=svg)](https://circleci.com/gh/reagent-project/reagent)
This is all you need to do if you want the standard version of React. If you want the version of React with addons, you'd use something like this instead:
[reagent "0.7.0" :exclusions [cljsjs/react]]
[cljsjs/react-with-addons "15.4.2-2"]
If you want to use your own build of React (or React from a CDN), you have to use `:exclusions` variant of the dependency, and also provide a file named "cljsjs/react.cljs", containing just `(ns cljsjs.react)`, in your project.
This is all you need to do if you want the standard version of React. If you want to use your own build of React (or React from a CDN), you have to use `:exclusions` variant of the dependency, and also provide `react` and `react-dom` namespaces (by creating `.cljs` files with just `ns` form, or by adding your own `:foregn-libs` entries).
[reagent "0.x.x" :exclusions [cljsjs/react cljsjs/react-dom]]
## Examples