kit-clj / kit

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

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

Closed UnchartedSystems closed 1 year ago

UnchartedSystems commented 1 year 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 1 year ago

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