Functional factory to create react anchor components