Skip to content

Commit

Permalink
add default export, reword package description
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed May 26, 2022
1 parent 1ba83ba commit 86de4d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
description = "React hook for managing effects within reducers.";
description = "React hook for managing effects from reducers.";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "react-use-bireducer",
"author": "soywod <[email protected]>",
"description": "React hook for managing effects within reducers.",
"version": "1.0.1",
"description": "React hook for managing effects from reducers.",
"version": "1.0.2",
"license": "MIT",
"source": "./src/index.ts",
"exports": "./dist/index.mjs",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"unpkg": "./dist/index.umd.js",
"typings": "./dist/index.d.ts",
"source": "src/index.ts",
"exports": "dist/index.mjs",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.umd.js",
"typings": "dist/index.d.ts",
"files": [
"./dist"
"dist"
],
"devDependencies": {
"@jest/types": "^28.1.0",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ export function useBireducer<S, A, E>(

return useReducer(reducer, defaultState);
}

export default {useBireducer};

0 comments on commit 86de4d8

Please sign in to comment.