Dev_HK
Dev_HK
Explore posts from servers
SSolidJS
Created by Dev_HK on 5/27/2024 in #support
Modularizing Components
the representation of that data will be in the component, how to seperate the data from it's representation??
function Assure() {

return (
<div class="flex w-screen h-screen bg-gray-100">
<Navbar />
<AssuresTable />
</div>
);
}

export default Assure;
function Assure() {

return (
<div class="flex w-screen h-screen bg-gray-100">
<Navbar />
<AssuresTable />
</div>
);
}

export default Assure;
i did something like this, and transformed those elements into their own component, now when i'm in the third page that requires to load the first page with the ability to click on the CIN (ID of user) then get all the products for that user now i'll only need to pass the props to that component where they'll olny be actions for that component to use like {enableActions:true,enableClickable:true}
5 replies