Use React advanced design patterns to build or refactor components, including Container Component Pattern, Compound Component Pattern, Higher Order Component Pattern, and the Render Props Pattern which is the most popular pattern in this year.
Please check the demo codes for more detail >>> https://github.com/xJkit/modern-web-2018-demo