Using react generator to create structure