React组件之间的通信方式总结(下)一、写一个时钟用react写一个每秒都可以更新一次的时钟<pre<codeimportReactfrom&39;react&39;importReactDOMfrom&39;reactdom&39;functiontick(){