UT

Utils

@modern-js/utils

A Progressive React Framework for modern web development.

Utilities
react
framework
modern
modern.js
@modern-js/utils
Utilities
javascript
npm
frontend
open source
Stars
5.0k
Weekly
745k
Open issues
59
Bundle
~25 kB

Installation

npm install @modern-js/utils

Code example

import { useUtils } from "@modern-js/utils";

export function Example() {
  const value = useUtils();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by bytednpm
  • 745k weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 59 open issues on GitHub

FAQs

Alternatives & similar libraries