You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started a project off of this template and got the following error when trying to create a "Form-2" reagent component:
Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.
I think what's going on here is that this template uses r/as-element to render the page, which maybe requires all its input to be pure hiccup, not functions that reagent will call when state changes.
Is there a reason why this function was used here? Is there another way to get a "Form-2" component working?
In my situation, I'd like to use the local hovered state to manage my component's display instead of storing it in the reframe db or another global atom.
The text was updated successfully, but these errors were encountered:
I started a project off of this template and got the following error when trying to create a "Form-2" reagent component:
My component looks like:
I think what's going on here is that this template uses
r/as-element
to render the page, which maybe requires all its input to be pure hiccup, not functions that reagent will call when state changes.Is there a reason why this function was used here? Is there another way to get a "Form-2" component working?
In my situation, I'd like to use the local
hovered
state to manage my component's display instead of storing it in the reframe db or another global atom.The text was updated successfully, but these errors were encountered: