From 57c747b358ee4c9c6ccf9df30dd5e1727113ee59 Mon Sep 17 00:00:00 2001 From: Dan Holmsand Date: Mon, 24 Aug 2015 20:01:06 +0200 Subject: [PATCH] Add asserts to adapt-react-class and reactify-component --- project.clj | 2 +- src/reagent/core.cljs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/project.clj b/project.clj index aaa6f4e..10f06a3 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject reagent "0.5.1-rc" +(defproject reagent "0.5.1-SNAPSHOT" :url "http://github.com/reagent-project/reagent" :license {:name "MIT"} :description "A simple ClojureScript interface to React" diff --git a/src/reagent/core.cljs b/src/reagent/core.cljs index a00db6b..a93400c 100644 --- a/src/reagent/core.cljs +++ b/src/reagent/core.cljs @@ -47,6 +47,7 @@ which is equivalent to "Returns an adapter for a native React class, that may be used just like a Reagent component function or class in Hiccup forms." [c] + (assert c) (tmpl/adapt-react-class c)) (defn reactify-component @@ -54,6 +55,7 @@ just like a Reagent component function or class in Hiccup forms." React, for example in JSX. A single argument, props, is passed to the component, converted to a map." [c] + (assert c) (comp/reactify-component c)) (defn render