diff --git a/flake.nix b/flake.nix index 905bf0a..823c66f 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; diff --git a/package.json b/package.json index cbc53a5..fa7efee 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { "name": "react-use-bireducer", "author": "soywod ", - "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", diff --git a/src/index.ts b/src/index.ts index 1fd87d6..7a5fb1a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -41,3 +41,5 @@ export function useBireducer( return useReducer(reducer, defaultState); } + +export default {useBireducer};