How to use Mobx with React Hooks

preview_player
Показать описание
Learn how to use Mobx with React Hooks.

----

----

----

----
Follow Me Online Here:

#benawad

----
#benawad
Рекомендации по теме
Комментарии
Автор

I was wondering why did you wrap the count store in context, when we can use the store directly? is there any advantage of wrapping it in context?

SaleemKhan-lnly
Автор

I like using the data format like '2019-02-19' as that's how postgresql uses/displays dates natively.

danieldosen
Автор

How do I persist state with mobx and react hooks?

MrJoaopaulofurtado
Автор

Do I have to write in Typescript if I want to use mobX?

punreachrany
Автор

Very cool, I am having difficulties with MobX now, the page renders indefinitely after a Promise with data resolves and fills up an array with data. No idea why...

kresimircosic
Автор

Where are you willing to store the workouts data, firebase?

impzeropvp
Автор

Silly question perhaps, but CMD + Space doesn't open up the intellisense / import thingy... How did you set that up?
And what is currently set to your CTRL + period?

Chocoholic
Автор

Will you build in an ability for the React-Native app to work 'offline' / not connected to a server?

danieldosen
Автор

Seems good BUT i think using mobx with hooks is not ideal (or maybe i still dont get it) why? because the magic of mobx is that you pick which properties you want your component to listen without all that extra setup by default. Anyway you're awesome Ben!

Lessep
Автор

Only works with JS scalar types (types.string, types.number, etc..). If MobX Store property if of type "types.array(Other model)" or "types.map(Other model)", react hooks does not take care of those properties updates (useEffect/useMemo/etc). Do you why ?

goulenstring
Автор

Damn that's a boilerplate that I would liike to avoid. I prefer something easy to use like "Store me".

MarioIliev
Автор

Getting the "Invalid Hook Call" error when using the useContext hook when the component is wrapped in observer()

gosnooky
Автор

how difficult it will be to create a react-native-web-cli with a create-rnw command that creates a folder with all the packages configurated? i dont have any idea of how to do it, but it will be a good exercise if you ask me, i'm in to try to help if you want to do it

gonzalochristobal
Автор

i'm getting error *
error: bundling failed: Error: Unable to resolve module `mobx-react-lite`*

if i go to root directory node_modules it showing me *mobx-react-lite*.
can u plz help me

zulq
Автор

How do you decide when to use interface vs type

frfou
Автор

I don't have a tsconfig or a jsconfig. I've been in hell trying to get rid of this error -- using CRA3 and JS

SalientKnight
Автор

can any one tell me how this is different from context api

muzamilhussain
Автор

I just don't understand anymore why use something else to manage the store, than the context.

deannno
visit shbcf.ru