the following paragraph mentions Coriarization:
quoted from "React Design ideas": ide/react-basic-sharp%E8%BF%9E%E7%BB%AD%E6%80%A7continuations" rel=" nofollow noreferrer "> https://github.com/react-guid.
continuity (Continuations)
Unfortunately, since there are too many lists in UI, explicit management requires a lot of repetitive boilerplate code.We can move some templates out of the business logic by delaying the execution of some functions. For example, use "Coreification" (bind in JavaScript). Then we can pass state, from outside the core function so that there is no boilerplate code.
this does not reduce the boilerplate code, but at least strips it from the critical business logic.
function FancyUserList(users) {
return FancyBox(
UserList.bind(null, users)
);
}
const box = FancyUserList(data.users);
const resolvedChildren = box.children(likesPerUser, updateUserLikes);
const resolvedBox = {
...box,
children: resolvedChildren
};
question:
I don"t feel clear about Collization. Please explain it with the above example. Thank you.