question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

How to manipulate choo state with nanocomponent method

See original GitHub issue

Hi šŸ‘‹ 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:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
YerkoPalmacommented, Aug 14, 2017

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

0reactions
ungoldmancommented, Aug 10, 2017

No problem @YerkoPalma! I think you found something worth rethinking in terms of chooā€™s internal architecture šŸ‘

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found