Menu

Post image 1
Post image 2
Post image 3
Post image 4
1 / 4
0

React - The Missing Parts

Acko.net·Acko.net·about 1 month ago
#POn5cQOL
#acko#skip#code#class#react#tree
Reading 0:00
15s threshold

Question the rules for fun and profit One of the nice things about having your own lean copy of a popular library's patterns is that you can experiment with all sorts of changes. In my case, I have a React-clone, Live , which includes all the familiar basics: props , state and hooks . The semantics are all the same. The premise is simple: after noticing that React is shaped like an incremental, resumable effect system, I wanted to see if I could use the same patterns for non-UI application code too. Thus, my version leaves out the most essential part of React entirely: actually rendering to HTML. There is no React-DOM as such, and nothing external is produced by the run-time. Live Components mainly serve to expand into either other Live Components, or nothing. This might sound useless, but it turns out it's not. I should emphasize though, I am not talking about the React useEffect hook. The Effect-analog in React are the Components themselves.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More