反应的价值功能组件的成本是什么?— Update 5/31/19: React 16.8 added Hooks, which mean you can use functional components for nearly everything! Function components are the future of React. So bottom-line, use functional components for future development. That said, the tradeoffs below apply for older codebases where Hooks aren’t an option. Happy coding! I’m spending…