Nanodots were introduced in the early 2000s as a type of magnetic toy.
Neocubes are a more recent invention, appearing on the market in the mid-2010s. They are essentially a larger, more advanced version of Nanodots, with more powerful magnets and a higher number of spheres.
Therefore, Nanodots predate Neocubes.