Skip to content

EmptyCup20/react-watchhill

Repository files navigation

react-watchhill

命令

打包

客户端

npm run browser

服务端

npm run node

测试

客户端

npm run test-client

客户端karma

npm run karma-test-client

服务端

npm run test-server

开发环境启动服务

npm start

组件

组件类型 说明
containers 容器组件控制向视图组件分发stateaction
views 视图组件是实际渲染的组件,含有子视图组件,视图组件由基础组件构成
elements 元素构成的基础组件,用于检测属性的合理性

问题

问题 说明
State Tree 如何做到合理的分配State Tree,从而使state变化时,需要渲染的组件最小化,如何合理的改变State Tree,避免不必要的渲染.
server.bundle.js 服务端打包问题
webpack打包 前端打包文件过大问题
img元素 src找不到路径时会向服务端发起当前组件的重新渲染请求
mongodb 存储 mongodb存储时默认生成一个_id字段,现在还无法将该字段赋值给其他字段,导致返回回来的都是_id,区别性不大
es6语法 在测试时需要使用babel转码,导致文件内容变化(不可见),造成调试困难
less解析 使用热部署时,less文件解析失败

参考文献

xxholly32/Blog#6

https://github.com/sahat/newedenfaces-react

http://www.nodeclass.com/api/mongoose.html#guide

http://www.ruanyifeng.com/blog/2015/12/a-mocha-tutorial-of-examples.html

https://github.com/mochajs/mocha

https://github.com/visionmedia/supertest

ladjs/supertest#26

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •