TypeError: Object(...) is not a function reactjs
It looks fine, you just have to export
your function that's it.
use
export let fillCalendar = (month, year) => {
instead of
let fillCalendar = (month, year) => {
Just putting it out there....
I saw this error because I imported a function from the wrong module!
But I'm sure you'd never do that ;-)
(obviously a bit unlucky in that the function I imported had a common name - useParams
in my case)
Example for Higher Order Component
Export function directly from after declaration
export default function Authorized(WrappedComponent) {}