[前端] 每日时报 - 2019.06.17

2019-06-17 17:13:24 +08:00
 wubaiqing

[前端] 每日时报 - 2019.06.17

[文章] Recompose 是一个 React 实用库,用于函数组件和高阶组件。把它想象成 React 的 lodash:https://www.jianshu.com/p/7f619be29e52

[类库] 一个集成了下拉刷新、上拉加载、无限滚动加载的 Vue 组件:https://github.com/stackjie/vue-pull-to/blob/master/README.zh-CN.md

[类库] Swell 是专门为手机浏览器设计的 Web Terminal 工具,自带键盘,可扩展为命令联想功能:https://github.com/wcchoi/swell.sh

[资源] 《前端架构:从入门到微前端》:https://github.com/phodal/aofe.images

配图 - vue-pull-to

配图 - Swell

配图 - 从入门到微前端

示例 - Recompose

const counterReducer = (count, action) => {
  switch (action.type) {
  case INCREMENT:
    return count + 1
  case DECREMENT:
    return count - 1
  default:
    return count
  }
}

const enhance = withReducer('counter', 'dispatch', counterReducer, 0)
const Counter = enhance(({ counter, dispatch }) =>
  <div>
    Count: {counter}
    <button onClick={() => dispatch({ type: INCREMENT })}>Increment</button>
    <button onClick={() => dispatch({ type: DECREMENT })}>Decrement</button>
  </div>
)

今日图 - 一个简短的项目背后

GitHub: https://github.com/wubaiqing/zaobao 查看更多: https://wubaiqing.github.io/zaobao/2019/06/17.html

1115 次点击
所在节点    分享发现
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/574788

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX