Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Randy_Johnson's avatar

Please Help Me Organise my Code for Reusablity

Hi,

I'm feeling stuck constantly recreating similar components in my project, and I want to make my code more reusable. Specifically, I’d like to refactor the Table component (found in the pages directory of my project) to work like a headless UI library. My goal is to make it modular and reusable so I can import and use it seamlessly across the project.

The project is available here: https://github.com/JoshuaHeathcote1987/TaskManager

I’m looking for guidance on how to approach this refactor. Any suggestions or direction would be appreciated!

0 likes
0 replies

Please or to participate in this conversation.