Closed carocad closed 6 years ago
Refactored the app to have some naming conventions for general guidance
(defn MyComponentName [props] ....)
[MyComponentName props]
(def (js/require "LibraryComponent")
[:> LibraryComponent props]
(defn my-pure-function [args] ....)
(my-pure-function args)
(defn my-effect! [args] ....)
[my-effect! args]
Not mandatory, just for clarity ;)
Refactored the app to have some naming conventions for general guidance
(defn MyComponentName [props] ....)
-- used as -->[MyComponentName props]
(def (js/require "LibraryComponent")
-- used as -->[:> LibraryComponent props]
(defn my-pure-function [args] ....)
-- used as -->(my-pure-function args)
(defn my-effect! [args] ....)
-- used as -->[my-effect! args]
Not mandatory, just for clarity ;)