Is this a correct implementation? :) - SolidJS