lumrop is a versatile npm package that provides a collection of React components, hooks, and utilities designed to simplify and enhance development within the React ecosystem.
 
 
Go to file
Tudor Stanciu d7d107cb1c Update package description for clarity and detail 2025-04-16 01:19:41 +03:00
src 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
tests added unit tests 2023-10-31 03:20:24 +02:00
.eslintignore 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
.eslintrc 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
.gitignore 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
.npmrc 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
.prettierrc 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
LICENSE 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
README.md Merged PR 92: Rebranded the package from `react-hooks` to `lumrop`. 2025-04-15 22:16:29 +00:00
jestconfig.json 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00
package-lock.json Merged PR 92: Rebranded the package from `react-hooks` to `lumrop`. 2025-04-15 22:16:29 +00:00
package.json Update package description for clarity and detail 2025-04-16 01:19:41 +03:00
tsconfig.json 1.1.0 - The project has been migrated to Typescript. 2023-10-31 02:55:22 +02:00

README.md

lumrop

Introduction

lumrop is a versatile npm package that provides a collection of React components, hooks, and utilities designed to simplify and enhance development within the React ecosystem. Whether you're working on personal projects or building for the public, lumrop offers tools to streamline your workflow.

Installation

Install the package using npm or yarn:

# with npm
npm install @flare/lumrop --registry https://lab.code-rove.com/public-node-registry

# with yarn
yarn add @flare/lumrop --registry https://lab.code-rove.com/public-node-registry

Usage

Import and use the provided hooks and utilities in your React project:

import { useWindowSize, useLink, useTitle } from "@flare/lumrop";

// Example usage
function App() {
  const { width, height } = useWindowSize();
  useTitle("Welcome to Lumrop");

  return (
    <div>
      <h1>
        Window Size: {width}x{height}
      </h1>
    </div>
  );
}

Unit Testing

Unit tests are written using Jest, a powerful testing framework by Facebook.
Test files are identified by the *.test.ts extension. To run all tests, use the following command:

npm test

Changelog

v1.2.0

  • Rebranded the package from react-hooks to lumrop.

v1.1.1

  • Included the src directory in the npm package.

v1.1.0

  • Migrated the project to TypeScript.
  • Added unit testing with Jest.

v1.0.1

  • Minor updates to the domain and README.

v1.0.0

  • Initial release of the react-hooks package.