Re:SmartReactives: a .NET library that detects when an expre...
by sandGorgon on Saturday May 28, 2016 @10:43AM
(#11791800)
Does anyone know if you can do this in reactjs? It would be awesome to build a excel like spreadsheet with user-input formulas.
[ Parent
| on HN ]
Re:SmartReactives: a .NET library that detects when an expre...
by nunyabuizness on Saturday May 28, 2016 @11:22AM
(#11791942)
Check out MobX, as it comes with React bindings to re-render components when their reactive dependencies change: https://github.com/mobxjs/mobx
Re:SmartReactives: a .NET library that detects when an expre...
by egeozcan on Saturday May 28, 2016 @01:35PM
(#11792473)
There is Baobab[1] - it is a single state-tree approach, while supporting computed values in the tree and has a react adapter[2].
[1]: https://github.com/Yomguithereal/baobab#computed-data-or-mon...
Re:SmartReactives: a .NET library that detects when an expre...
by gagege on Saturday May 28, 2016 @02:12PM
(#11792637)
How about RxJS?
Re:SmartReactives: a .NET library that detects when an expre...
by danthejam on Saturday May 28, 2016 @10:55AM
(#11791835)
As another poster said, you can use Meteor's Tracker and ReactiveVar modules to do it. Here's a standalone package that doesn't require the Meteor platform: https://www.npmjs.com/package/meteor-standalone-tracker
Re:SmartReactives: a .NET library that detects when an expre...
by untog on Saturday May 28, 2016 @10:55AM
(#11791839)
Wouldn't it be backwards to do this in React? Everything is controlled by a state object you manually set, so you already know when values are going to change.
Re:SmartReactives: a .NET library that detects when an expre...
by sandGorgon on Saturday May 28, 2016 @10:59AM
(#11791846)
actually - I'm talking about a function expression. Think about a spreadsheet with a formula similar to "=SUM(A1+B1)". What this means is that when A1 or B1 change.. then this formula result should get re-computed. Remember that A1 and B1 themselves may be computed results...
what happens today is that I need to recompute ALL formulas - because there is no easy way to know which formulas changed.
Re:SmartReactives: a .NET library that detects when an expre...
by goldenkey on Saturday May 28, 2016 @11:31AM
(#11791983)
Check out https://www.npmjs.com/package/watchjs