Closed ferdinand-beyer closed 1 year ago
Otherwise defnc will not resolve when users only refer defnc-.
defnc
defnc-
Consider the following example:
(ns example.core (:require ["react" :as react] ["react-dom" :as react-dom] [helix.core :refer [$ defnc-]])) (defnc- my-component [] ($ "h1" "Hello, World!")) (defn render [] (react-dom/render ($ my-component) (.getElementById js/document "app")))
Currently, this will fail to compile since the defnc- macro expands to defnc which is not defined in this context.
Otherwise
defnc
will not resolve when users only referdefnc-
.Consider the following example:
Currently, this will fail to compile since the
defnc-
macro expands todefnc
which is not defined in this context.