TypeError: r is not a function #285
Replies: 6 comments
-
When I follow your index.js and your App.js then the Viewport.js You need to wrap your |
Beta Was this translation helpful? Give feedback.
-
In other words, you cannot use I will try to open a PR that will produce a clearer error message for those cases. |
Beta Was this translation helpful? Give feedback.
-
Thanks, bro that is true solved the error, but now I have another issue when I am rendering the Pages.js component it keeps rendering infinite , https://github.com/throne1986/landing-app/blob/master/src/features/editor/Viewport/index.js I have updated my repo, please check what is wrong here |
Beta Was this translation helpful? Give feedback.
-
You are rendering |
Beta Was this translation helpful? Give feedback.
-
Since this is not a craft related issue, we can maybe close this issue and move further communication to your thread in the discussions? |
Beta Was this translation helpful? Give feedback.
-
ok u can transfer to discussion |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I want to run the landing example using pure react js without typescript, so I have refactored the given example in this repo,
Here is my new repo: https://github.com/throne1986/landing-app
But, unfortunately, I keep getting the error: `TypeError: r is not a function
I am out of idea what I am doing wrong, can someone please tell me what is wrong here?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions