Just took a glance so I may be completely wrong, fell free to ignore, but if I understand correctly, tsrx is just syntactic sugar for normal tsx code and does not enable anything new? If this is the case: I think introducing tsrx as part of Octane muddies the water a bit and makes me more hesitant to try (even if it is optional). The idea to make tsx files more readable may be interesting but in that case it should g…
Octane – React’s programming model, compiled
31–40 of 51 posts
Re: Octane – React’s programming model, compiled
#32Re: Octane – React’s programming model, compiled
#33> A current-state getter. useState and useReducer return [state, update, getState], so a delayed callback can read the latest value instead of a stale capture.
There are currently a few workarounds in React for this, and using other state management libs also give you non-reactive access to current state, but this is a big help in certain situations.
For example, a callback / event that you pass to all your child elements, that needs to access the current state when run, therefore normally needs to be recreated with the new state captured (in useCallback) whenever state changes, which then causes all child components to re-render. Non-reactive access to current state in callbacks avoids this entirely.
There are some hacks that fix this by wrapping the updated callback in a ref and updating it with an event (for example, https://usehooks-ts.com/react-hook/use-event-callback useEventCallback as implemented various places) and returning a stable reference to a function that calls that saved one, though I always wonder if there are downsides to this.
Re: Octane – React’s programming model, compiled
#34- i ll take that over the AI, GPT, LLM, Agent stuff on HN anyday now
Re: Octane – React’s programming model, compiled
#35Would look more appealing without the AI flavour. If you're vibe coding, do yourself a favor and write website copy yourself - it's the only evidence of human input or oversight your project will have.
Re: Octane – React’s programming model, compiled
#36Would look more appealing without the AI flavour. If you're vibe coding, do yourself a favor and write website copy yourself - it's the only evidence of human input or oversight your project will have.
I still think code quality itself reigns supreme. I couldn't give less of a damn about a website.
Sure, the website by itself doesn’t mean anything, but placed into context it could mean the maintainer doesn’t put much effort into clear, unambiguous communication.
Re: Octane – React’s programming model, compiled
#37Would look more appealing without the AI flavour. If you're vibe coding, do yourself a favor and write website copy yourself - it's the only evidence of human input or oversight your project will have.
It’s especially grating in this case because Dominic Gannaway, the creator of Octane, is the real deal (creator of Inferno, former React core team member, former Svelte core team member); so the project landing page looks like generic 2026 slopcoded abandonware, but it is in fact a real project made by someone who’s one of the great minds of frontend framework development (with heavy Claude use apparently, to be clea…