Luke Hall

Results 10 comments of Luke Hall

I have the same issue. Any idea what is the root cause?

Reducer and action can be written in any way in your app. Of course your solution can work too. Also depends on the use case. If the action passes simple...

Hi, feel free to create pull-request.

Hi @ehhMoises, see my article here, I mention it at bottom part https://medium.com/simply/state-management-with-react-hooks-and-context-api-at-10-lines-of-code-baf6be8302c

Hi @ehhMoises, everything is possible :) One way could be to create some higher order function and wrap reducer with it. Something like this: ``` const reducer = (state, action)...

Hi, could you please post the code where you are actually using the state?

@jbouhier I have some bigger plans with this state management. I'm doing some rewrites, so I will keep it for now, if you don't mind.

Renaming to .jsx is not solution. The reason for this is that it's not transpiled to ES6. You should setup your babel/webpack to transpile this package to ES6. Maybe I...

Something like this in your webpack config should help; ``` module: { rules: [ { test: /\.js$/, exclude: /node_modules\/(?!(@react-simply)\/).*/, loader: 'babel-loader' } ] }

Hi @choskins780, this was just a first shot I did. I plan to release completely new version with some improvements. Meanwhile you can just copy those few lines of code...