-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Om: Add example of a component with local state #25
Comments
@jakubholynet this would be a great example to add to the om example. @BorisKourt has started a kioo-docs project. I would love if we added this there. Once I get some free time that is where I will be concentrating my document efforts. |
I will add this asap. The example actually just helped me out now, thanks! : ) |
Lovely! Do you need any help from me, @BorisKourt ? |
I just have a request @jakubholynet it appears that om/graft has been depreciated as per omcljs/om#152 (unless I am misunderstanding) could you provide a super bare but fully compilable example? I don't want to write something you didn't intend to demonstrate by accident, still fairly new to the 'om way' haha :) Thanks! |
Thanks @BorisKourt, I haven't noticed that. Upgrading from 0.5.3 to 0.6.2 now :-) (om/build search-input {}) according to Nolen's example - and that is also what works for me with om 0.6.2 and cljs 0.0-2197 |
The current examples show how to create Om components that depend on the global app state but it is not clear how to create one that uses a local component state. Having an example would be therefore nice.
This is what I do, though I am not sure it is the best way - essentially wrapping a snippet in a stateful component:
Thank you!
The text was updated successfully, but these errors were encountered: