cassiozen / useStateMachine

The <1 kb state machine hook for React
MIT License
2.38k stars 47 forks source link

feat: Add use-constant for initialState and getReducer #2

Closed icyJoseph closed 3 years ago

icyJoseph commented 3 years ago

Really interesting library. Just adding useConstant to ensure getReducer and initialState exist only once.

Also fixing the path names for size-limit

cassiozen commented 3 years ago

@all-contributors please add @icyJoseph for code and bug.

allcontributors[bot] commented 3 years ago

@cassiozen

I've put up a pull request to add @icyJoseph! :tada: