                      (first (:warn e))))))))
 
 (deftest get-derived-state-from-props-test
-  (when isClient
+  (when r/is-client
     (let [prop (r/atom 0)
           ;; Usually one can use Cljs object as React state. However,
           ;; getDerivedStateFromProps implementation in React uses

                       {:at 8 :args ["a" "c"]}))
                (is (= (:did-update @res)
                       {:at 9 :args [@t [@comp "a" "b"] {:foo "bar"} nil]})))]
    (when isClient
      (with-mounted-component [c2] check)
      (is (= (:will-unmount @res)
             {:at 10 :args [@t]}))

          (r/replace-state @self {:foo "there"})
          (r/state @self)

          (r/flush)
          (is (= "hi there" (.-innerText div)))

          (r/set-state @self {:foo "you"})
          (r/flush)
          (is (= "hi you" (.-innerText div)))))
      (is (= 4 @ran)))))

(deftest test-ratom-change
  (when r/is-client
    (let [ran (r/atom 0)
          runs (rv/running)
          val (r/atom 0)
          secval (r/atom 0)
          v1-ran (atom 0)
