reactjs 两个component之间怎么通信

2025-05-10 07:26:17
推荐回答(1个)
回答1:

Timer#timer{float:right;width:500px;background:gold;}#message{background:yellowgreen;margin-right:500px;}/**@jsxReact.DOM*/varTimer=React.createClass({getInitialState:function(){return{secondsElapsed:0};},tick:functi