react-static-container:通过允许React缩短对帐过程来有效地呈现静态内容

时间:2021-02-26 16:19:57
【文件属性】:
文件名称:react-static-container:通过允许React缩短对帐过程来有效地呈现静态内容
文件大小:37KB
文件格式:ZIP
更新时间:2021-02-26 16:19:57
JavaScript React静态容器 通过允许React缩短对帐过程来有效地呈现静态内容。 当您知道永远不需要更新组件的子树时,应使用此组件。 通常,您无需使用此组件,而应选择常规的React对帐。 安装 npm install react-static-container 用法 var StaticContainer = require ( 'react-static-container' ) ; var someValue = ... ; // We know for certain this value will never change. class MyComponent extends React . Component { render ( ) { return ( < div> { this . props . value } <
【文件预览】:
react-static-container-master
----yarn.lock(101KB)
----src()
--------StaticContainer.react.js(1KB)
--------__tests__()
----PATENTS(2KB)
----scripts()
--------jest()
----.npmignore(26B)
----module-map.json(56B)
----gulpfile.js(1018B)
----LICENSE(2KB)
----README.md(884B)
----.gitignore(17B)
----index.js(360B)
----package.json(1KB)

网友评论