kit-clj / kit

Lightweight, modular framework for scalable web development in Clojure
https://kit-clj.github.io/
MIT License
463 stars 43 forks source link

The Kit Clojurescript Docs uses an incorrect function to render to the DOM. #109

Closed UnchartedSystems closed 11 months ago

UnchartedSystems commented 11 months ago

In the Kit #clojurescript Docs, under the Reagent header, this is stated:

Finally, rendering components is accomplished by calling the render-component function: (defn render-simple [] (reagent/render-component [input-field] (.-body js/document))

image

reagent.core/render-component does not exist in Reagent 1.1.1 (the version used in the Kit docs), or in Reagent 1.2.0. The function used to render a react component onto the DOM is reagent.dom/render. (reagent.core/render is depreciated.)

yogthos commented 11 months ago

thanks, updated the doc here https://github.com/kit-clj/kit-clj.github.io/blob/master/resources/md/clojurescript.md