Component generator for React JS