After i use npm run-script build
on my react site and run index.html browser throws error TypeError: Object(...) is not a function
on this part of code {useMemo(() => <Tabulka/>, [bom,db,skipParams,columnNameMap,tableColumnOrder])}
. What should i do to make it work ?
Asked
Active
Viewed 93 times
-1

marek
- 39
- 4
-
1Could you update your question to include a [Minimal, Complete, and Reproducible Code Example](https://stackoverflow.com/help/minimal-reproducible-example) and complete error message and stacktrace if it's available? – Drew Reese Sep 23 '21 at 05:30
1 Answers
0
I was actually using useMemo from different library and no from React. Using React useMemo works.

marek
- 39
- 4