2 ms·
Show HN: Creating TodoMVC in Hyphen custom elements with ChatGPT
- keepamovin 3y agoHello HN! I wanted to share a TodoMVC implementation I created using the Hyphen custom element framework with guidance from ChatGPT (it basically wrote the whole thing). Hyphen simplifies working with Web Components by managing templating, lifecycle and a dash of state (but not much), which can be quite verbose in vanilla JS. Check it out! Contributions and improvements are welcome. If you'd like to contribute please submit a PR from your fork. The looks is meant to be a modern twist on the classic TodoMVC, featuring a dodger blue/aquamarine theme for a fresh look and feel. I've encapsulated styles within shadow DOM for component scope, ensuring a clean and maintainable codebase. This project has been a great exercise in state management and UI crafting. Any feedback or contributions to the GitHub repo are definitely welcome, as well as constructive ideas and suggestions on how - could be improved!