tastejs / todomvc

Helping you select an MV* framework - Todo apps for React.js, Ember.js, Angular, and many more
http://todomvc.com
Other
28.65k stars 13.76k forks source link

Thoughts on contributing an updated version of the React example #2231

Open jagretz opened 10 months ago

jagretz commented 10 months ago

tl;dr: I'd like to update the current version in the examples for React by creating a version that utilizes the latest syntax and features (ie. context & hooks).

Background: I was helping a junior developer learn some React and navigated here to show how to build a todo app using React and noticed the current version is outdated and isn't an example I'd want them spending time on. It wraps the components in IIFEs and uses class-based react component instantiation (componentDidMount, etc.). I do see a version under /examples/react-hooks which at least utilizes hooks, but the dev had trouble installing it with the current version of node & npm. I also noticed that was also 4+ years old.

I'd like to help contribute an updated version of the React example that utilizes the latest features. I've read through the contribution guidelines and have no problem helping to maintain this example in the years to come.

TodoMVC has helped me to learn unfamiliar tech in the past, and I'd like to pay that forward by providing an up to date example using React. Let me know if this is possible or needs more discussion. Thanks!