我需要将Android手机作为 import React, { Component } from 'react';
import {connect} from 'react-redux'
class App extends Component {
render() {
return (
<div>
<h1>{this.props.number}</h1>
<button onClick={
() =>
{
this.props.dispatch({type:'+'});
}
}> + </button>
</div>
);
}
}
const mapStateToProps = state => ({
number: state
})
export default connect(mapStateToProps)(App);
端口进行串行通信。我可以那样做吗?如果是,那怎么办?我有COM
。