Skip to content

Improve my-eval

fixes :load fn, adds require of reagent.core and excludes cljs.core/atom so (def atom reagent.core/atom) goes smoothly.

Also outputs an empty div when the code is empty, to prevent an error due to trying to render an invalid component. The error is "Invariant Violation: ReactDOM.render(): Invalid component element." and is being thrown currently when cljsfiddle start (because the editor starts empty)

Merge request reports