Next.js Custom Server
|* Accept control commands via USB.|
|* Commands start with '!' and end with '.'|
|* Commands have three parts: action, pin, value: !AAPPVV.|
|* E.g. '!01p101.' is DigitalWrite, Pin1, value = 1|
|* Note: This is currently *very* crude. Much improvement could be made.|
|* I think the use of strncpy is eating a lot of memory. Refactor?|
Using D3 in a React TransitionGroup to transition elements. D3 is used purely for transitions, not for data joins. The distinction between entering and exiting elements is handled by the TransitionGroup component. See the React documentation for further information.
Note: This implementation is around 30% slower in processing 1000 circles than the other two.