Implementing Generic for all Details page #644
Replies: 5 comments 2 replies
-
I things Generic Component will be nice if there is not much difference between in sub sections(summery, details) of them (project, chapters, ..). Generic Component will help in maintaining code much easier. |
Beta Was this translation helpful? Give feedback.
-
We can apply modular approach to extract something like |
Beta Was this translation helpful? Give feedback.
-
@Rajgupta36 |
Beta Was this translation helpful? Give feedback.
-
The generic component approach seems best for our project, as it reduces code duplication and ensures a consistent look across pages. |
Beta Was this translation helpful? Give feedback.
-
Thanks, everyone, for sharing your valuable opinions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Discussion: Generic Functionality for Detail Pages
Hi everyone, welcome to this discussion.
Currently, we have pages that contains a list (e.g., chapters, projects) that uses a unified
Card.tsx
component. The question is: What do you think about implementing the same generic functionality for all detail pages?We have two approaches:
Card.tsx
Both approaches have their own advantages and disadvantages. Let’s break them down:
1. Create a Generic Component (Similar to
Card.tsx
)Advantages:
Disadvantages:
2. Use Modular Code (Current Approach)
Advantages:
Disadvantages:
Next Steps
To move forward, please share your thoughts and goals for this discussion. Specifically:
Let’s collaborate to finalize the best approach! 🚀
Beta Was this translation helpful? Give feedback.
All reactions