🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@mindgrub/mindgrub-react

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mindgrub/mindgrub-react

A collection of typed, functional React utilities.

0.0.12
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

React 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.

Assumptions

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.

Code formatting

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.

Keywords

typescript

FAQs

Package last updated on 28 Aug 2018

Did you know?

Socket

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.

Install

Related posts