
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@mindgrub/mindgrub-react
Advanced tools
This repository contains general-purpose functions for use with React and React DOM.
The library assumes that react
and react-dom
are available at runtime.
The module is intended to be used with Rollup as a packaging tool, and no particular effort is made to scope the content by subject matter (beyond the dependency on React).
The library is written in TypeScript and includes type definitions.
For additional notes, see the mindgrub
package.
This library is 99% environment agnostic. However, it is compiled with the
dom
lib because of one reference to window.requestAnimationFrame
in
withAsync.tsx
. In that particular case, the same effect could probably be
achieved by changing it to global.setImmediate
, which does not assume a
browser environment.
However, more consideration would be required before these functions could be deemed “isomorphic,” i.e. supporting server-side render. So for the moment this l ibrary makes a de facto assumption that it is used in a browser.
This codebase uses prettier as a formatter, and includes
a Gitlab CI step to verify this on commits. If you use editor integration
to get format-on-save (recommended), then no additional steps are necessary.
But you can also run npm format
before committing to validate.
FAQs
A collection of typed, functional React utilities.
We found that @mindgrub/mindgrub-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.