Skip to content
#

reagent

Here are 298 public repositories matching this topic...

Deraen
Deraen commented Apr 26, 2020

Currently Reagent has one shortcut to control how components are created:

  • :> as shortcut to adapt-react-class which in effect calls create-element and converts the Cljs properties to JS object (doesn't wrap the component in Reagent implementation, so Ratoms won't work inside these components)
  • :<> isn't really shortcut, but just special element

I want to add two more:

  • Shortc
danielcompton
danielcompton commented Feb 14, 2018

If the ClojureScript script file is loaded in the <head>, then it will run before the document is loaded, and you get the error message:

Uncaught TypeError: Cannot read property 'appendChild' of null
    at day8$re_frame$trace$panel_div (trace.cljs:222)
    at day8$re_frame$trace$inject_devtools_BANG_ (trace.cljs:229)
    at preload.cljs:11

I'm not sure what the best approach

bpicolo
bpicolo commented Jun 14, 2016

I believe I'm hitting similar behavior to a few of the other issues, but it's quite unclear how to resolve.

I have a form as so:

(defn some-form [foo] 
   (let [doc (r/atom {:bar (:bar foo)])
     (fn []
         [bind-fields some-form-template doc])))

The issue is, when some-form is re-rendered (because a level above it is reacting to @\foo), the form does not seem to re-render. (If I

Michieljoris
Michieljoris commented Jun 4, 2018

Getting errors such as:

react-dom.inc.js:526 Warning: Expected onMouseUp listener to be a function, instead got false.

If you used to conditionally omit it with onMouseUp={condition && value}, pass onMouseUp={condition ? value : undefined} instead.
in input (created by EnhancedSwitch)
in div (created by EnhancedSwitch)
in EnhancedSwitch (created by Toggle)
in Toggle (

Improve this page

Add a description, image, and links to the reagent topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the reagent topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.