Factory method in React: creating components efficiently. Part 1Factory method in React: creating components efficiently. Part 1