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