                         ;;    a function, which will be called w/ the component to return initial state.
                         ;;    the initial value is wrapped in an atom.
 
-                        (when-let [initial-state (gobj/get component "$initialState")]
+                        (when-let [initial-state (.-re$initialState component)]
                           (atom (cond-> initial-state (fn? initial-state) (apply component children))))
 
                         ;; 3. in the component's methods map, can specify :view/state directly. Must be

    :view/did-update "componentDidUpdate"
    :view/will-unmount "componentWillUnmount"
    :view/render "render"
    (str "re$" (v-util/camelCase (name k)))))

(defn compseq

  [k]
  (case k
    :constructor "constructor"
    
    ;; re-view class keys
    :view/props "re$props"
    :view/state "re$state"
    :view/children "re$children"
    :view/initial-state "re$initialState"
    
    ;; react class keys
    :view/did-catch "componentDidCatch"
    :view/will-mount "componentWillMount"
    :view/did-mount "componentDidMount"
