Context: https://twitter.com/VictorTaelin/status/1776677635491344744
Results: 5/10 with GPT-4-Turbo, 10/10 by claude-3-opus-20240229 Temp: 0.0
Barely tested, your mileage may vary.
Context: https://twitter.com/VictorTaelin/status/1776677635491344744
Results: 5/10 with GPT-4-Turbo, 10/10 by claude-3-opus-20240229 Temp: 0.0
Barely tested, your mileage may vary.
Thanks to React hooks you have now happily turned all your classes into functional components.
Wait, all your components? Not quite. There is one thing that can still only be implemented using classes: Error boundaries.
There is just no functional equivalent for componentDidCatch
and deriveStateFromError
yet.
Lightning Talk proposal for ReactiveConf 2017 http://www.reactiveconf.com #ReactiveConf
Elm is a statically-typed functional programming language. Its compiler produces safe JavaScript which is guaranteed to be free of runtime exceptions. Moreover Elm is packed with a bunch of powerful abstractions which let us build visual and reactive Web applications in a few lines of code.
As an example, I show the implementation of a simple framework for building Prezi-like presentations. It's just 99 lines of code!
This is a proposal for lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal!
Hi, I am Andy, creator of leakage - the node-powered memory leak testing library.
Instead of manual debugging it provides a structured approach to fix or even prevent memory leaks.
// counter.js | |
import stateful from 'new-fancy-statefulness' | |
const Counter = (props, state, { setState }) => ( | |
<div> | |
<div>Clicked {state.clicks} times</div> | |
<button onClick={props.onClick}>Increase +</button> | |
</div> | |
) |