Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
react-table
🤖 Headless UI for building powerful tables & datagrids for TS/JS - React-Table, Vue-Table, Solid-Table, Svelte-Table
Others have mentioned the propsed iterator helpers.
Someone posted this recently. Maybe it'll help?
This is what LINQ does in C#. Many have made js implementations; here's my attempt. Imo the real inefficiency of map/filter is that it allocates a new array for each step.
fromable - https://github.com/baron816/fromable
I'm not as familiar with this but I think Ramda can do this with pipe / compose.
There's also IxJS, which is basically RxJS but for arrays.
true, I could memo other rows while I edit that one row, so in essence, only that one single row would be rerendered every time, but I haven't quite figured out how to do it with react-table lib.
Here is a lazy implementation of map using generators as an example.