nosco / hx

A simple, easy to use library for React development in ClojureScript.
MIT License
249 stars 16 forks source link

Export hooks under Clojure-style names #58

Open fricze opened 5 years ago

fricze commented 5 years ago

I'm pretty curious why hooks are exported in camelCase instead of, typical for Clojure, kebab-case? Since hx is Clojure(Script) lib it seems like kebab-case would be more "natural"?

dpassen commented 5 years ago

Just like create-context is.

lilactown commented 5 years ago

I agree with this now. At the time, I wanted to increase grepability of code written with hx and lean on google to surface docs for the React hooks.

However, the hooks that hx now provides are different enough than the fundamental hooks React provides now that trying to re-use their names doesn't add anything and reads and writes un-idiomatically in a Clojure codebase..