T
TanStack4y ago
sunny-green

Show loading hover table

Hi guys i added a div into table to show loading when the table is waiting of ajax resolve the promise, But I have an error of react "<div> cannot appear as a child of <table>" This is error because is a div inside of table instead <tr>, but i need to lock table while is loading, any idea?
No description
No description
3 Replies
fascinating-indigo
fascinating-indigo4y ago
Our strategy is to render the loader OR the table, not the loader inside the table.
sunny-green
sunny-greenOP4y ago
Correct, the idea is the loader hover the table, but i do that for get the 100% widht & heigth how i can do that if the div are outside of table? Actually my idea is to use the :after element of css, But with JSX elements, and I don't know how to apply it correctly Got it
sunny-green
sunny-greenOP4y ago
No description

Did you find this page helpful?