How to manipulate choo state with nanocomponent method
See original GitHub issueHi š
Iām just starting with nanocomponent so this might be a repeated/silly question. I was wondering how can I call a method from a component that change the whole choo app state. Going further, it would be cool to share state between components and choo app, because in the createElement
function Iām always passing some or all of the state.
Maybe there is an easy way to do this, but I just can figure it out.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
choojs/nanocomponent: - create performant HTML components
Features. Isolate native DOM libraries from DOM diffing algorithms; Makes rendering elements very fastā¢ by avoiding unnecessary rendering; Component nesting andĀ ...
Read more >Choo v6 | by Yoshua Wuyts - Medium
Nanocomponent is useful in scenarios where you need local state in a component, or need to wrap 3rd party libraries that take care...
Read more >Millennial JS - Choo
Choo has a mutable single state in a form of an object available to you within ... This is also a standard way...
Read more >https://raw.githubusercontent.com/choojs/nanocompo...
nanocomponent Change Log All notable changes to this project will be documented ... control of a component (https://github.com/choojs/nanocomponent/pull/89)Ā ...
Read more >How to Work with and Manipulate State in React - SitePoint
setState(data, callback) class method. When this method is invoked, React merges the data with current states and calls render() . After that,Ā ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Well, I think that my doubts/issues about Nanocomponent are resolved now, so Iām closing this. Iām also opening an issue in choo to discuss about namespacing events.
Choo issue here: https://github.com/choojs/choo/issues/547
No problem @YerkoPalma! I think you found something worth rethinking in terms of chooās internal architecture š