集成 React 和 Datatables - 並沒有宣傳的那麼難

medium.com/@zbzzn/integ

# React & Datatables?

const mapStateToProps = () => {n //n};nnconst mapDispatchToProps = () => {n //n}nnexport default connect(n mapStateToProps,n mapDispatchToPropsn)(ComponentName);nn===nnconst returnedFunction = connect(n mapStateToProps,n mapDispatchToPropsn);nnexport default returnedFunction(ComponentName);nnn// connect() return a function, with params = containerComponentNamen

推薦閱讀:

TAG:React | Redux | Reduxthunk |