News for hackers. Stuff that matters.
Re:Ask HN: Show me your half baked project by jonorsi on Thursday October 12, 2023 @10:49PM (#37865992)
https://github.com/orsi/react-gamin

A very rough prototype of a game library with modern functional React. After seeing only a few game libraries in React, and all being relatively old and class-based, I wanted to learn how to make a React-based version of some simple games.

So far I got pong and some walking/animating sprites on a map, but hopefully will find more time in the future to flesh it out.

One big issue I found out was it’s incredibly difficult, if not impossible, to dynamically add/remove react components in and out of the dom. React very much encourages not touching or modifying “children”, with most apis that do that being obsolete and deprecated.

There are no comments on this comment yet.