Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 86de4d8

Browse files
committed
add default export, reword package description
1 parent 1ba83ba commit 86de4d8

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
description = "React hook for managing effects within reducers.";
2+
description = "React hook for managing effects from reducers.";
33

44
inputs = {
55
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "react-use-bireducer",
33
"author": "soywod <clement.douin@posteo.net>",
4-
"description": "React hook for managing effects within reducers.",
5-
"version": "1.0.1",
4+
"description": "React hook for managing effects from reducers.",
5+
"version": "1.0.2",
66
"license": "MIT",
7-
"source": "./src/index.ts",
8-
"exports": "./dist/index.mjs",
9-
"main": "./dist/index.js",
10-
"module": "./dist/index.esm.js",
11-
"unpkg": "./dist/index.umd.js",
12-
"typings": "./dist/index.d.ts",
7+
"source": "src/index.ts",
8+
"exports": "dist/index.mjs",
9+
"main": "dist/index.js",
10+
"module": "dist/index.esm.js",
11+
"unpkg": "dist/index.umd.js",
12+
"typings": "dist/index.d.ts",
1313
"files": [
14-
"./dist"
14+
"dist"
1515
],
1616
"devDependencies": {
1717
"@jest/types": "^28.1.0",

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ export function useBireducer<S, A, E>(
4141

4242
return useReducer(reducer, defaultState);
4343
}
44+
45+
export default {useBireducer};

0 commit comments

Comments
 (0)