DEV Community

How to Make a Calendar App with React

John Au-Yeung on January 20, 2020

Subscribe to my email list now at http://jauyeung.net/subscribe/ Follow me on Twitter at https://twitter.com/AuMayeung Many more articles at http...
Collapse
 
khushi24699 profile image
Khushi Kumar

Attempted import error: 'decorate' is not exported from 'mobx'.
getting this error

Collapse
 
khushi24699 profile image
Khushi Kumar • Edited

so i changed decorate to makeObservable , but now i am getting this error

Error: [MobX] Cannot decorate undefined property: 'calendarEvents'

Collapse
 
aumayeung profile image
John Au-Yeung

Did you follow this guide?

mobx.js.org/observable-state.html

Collapse
 
aumayeung profile image
John Au-Yeung

You tried enabling decorators?

mobx.js.org/enabling-decorators.html

Collapse
 
khushi24699 profile image
Khushi Kumar

Yes after that I switched to makeObserver

Thread Thread
 
aumayeung profile image
John Au-Yeung

If you use decorators, then you don't use makeObserver.

The repo is at bitbucket.org/hauyeung/react-calen...

Thread Thread
 
khushi24699 profile image
Khushi Kumar • Edited

yes yes , it seems they stopped with decorator i guess
anyways thanks for the repository it works now :)

Thread Thread
 
aumayeung profile image
John Au-Yeung

No problem

Collapse
 
damon_developes profile image
Damon Schulz

I am attempting to use this calender app within a ToDoList application I am building. How can I pass the logged in user of my app their own Calendar? With the info they have saved in their database

Collapse
 
khushi24699 profile image
Khushi Kumar

hey i am kinda working on the same thing , if it is fine by you to share the repo would be a great help .

Collapse
 
aumayeung profile image
John Au-Yeung

Thanks for reading.

Sure. Let me find it and link it here.

Collapse
 
aumayeung profile image
John Au-Yeung

You can them from the API or store the user data on client side.