集成 React 和 Datatables - 並沒有宣傳的那麼難
02-02
https://medium.com/@zbzzn/integrating-react-and-datatables-not-as-hard-as-advertised-f3364f395dfa
# 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 |