nosco / hx

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

Add `:provider` hiccup element #25

Closed dawranliou closed 5 years ago

dawranliou commented 5 years ago

Fix for #19

This PR is to:

  1. Add react/create-context thin wrapper arround react/createContext
  2. Add custom hiccup element :provider to avoid js interop
  3. Update the context example to demonstrate the usage
lilactown commented 5 years ago

This is great! I need to think of a good place to document this, but the code looks good

lilactown commented 5 years ago

I'm going to go ahead and merge this and then figure out docs before next release.

dawranliou commented 5 years ago

That sounds good to me. Thanks for merging this. Let me know if there's anything else I can do to improve this feature, like improving the docs.