没有合适的资源?快使用搜索试试~ 我知道了~
react-render:Python Django的React组件的服务器端渲染
共71个文件
py:22个
jsx:11个
js:7个
需积分: 10 0 下载量 83 浏览量
2021-05-17
01:44:49
上传
评论
收藏 400KB ZIP 举报
温馨提示
React渲染 在Django的服务器端渲染React组件,也称为“同构React”。 您可以这样做,以加快页面加载速度,使其对Web爬网程序和SEO更友好。 例子 from react_render . django . render import render_component props = { 'foo' : 'bar' , 'woz' : [ 1 , 2 , 3 ], } rendered = render_component ( 'path/to/component.js' , props = props ) print ( rendered ) 这个怎么运作 它通过在可以渲染React组件的同一服务器上拥有NodeJS服务来工作。 Python仅使用一个简单的HTTP API将上下文和文件路径发送到服务,并以呈现HTML进行响应。 文献资料 安装 npm
资源推荐
资源详情
资源评论
收起资源包目录
react-render-master.zip (71个子文件)
react-render-master
MANIFEST.in 59B
.travis.yml 349B
example
.babelrc 127B
package.json 628B
djangosite
__init__.py 0B
settings.py 862B
urls.py 104B
package-lock.json 211KB
requirements.txt 43B
manage.py 253B
README.md 1KB
example_app
templates
example_app
index.html 1KB
static
vendor
bootstrap
css
bootstrap-theme.css 22KB
bootstrap.css.map 371KB
bootstrap.min.css 114KB
bootstrap.css 138KB
bootstrap-theme.min.css 19KB
bootstrap-theme.css.map 42KB
fonts
glyphicons-halflings-regular.woff 23KB
glyphicons-halflings-regular.woff2 18KB
glyphicons-halflings-regular.ttf 44KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.svg 106KB
js
npm.js 484B
bootstrap.min.js 35KB
bootstrap.js 65KB
webpack.config.js 1KB
jsx
main.jsx 312B
components
CommentList.jsx 475B
CommentBox.jsx 2KB
Comment.jsx 351B
CommentForm.jsx 1KB
main.css 147B
__init__.py 26B
views.py 2KB
urls.py 172B
package.json 684B
react_render
core.py 945B
__init__.py 47B
exceptions.py 107B
render.py 163B
django
models.py 0B
__init__.py 56B
render.py 3KB
tests
test_functionality.py 5KB
.babelrc 63B
package.json 322B
package-lock.json 189KB
__init__.py 0B
test_performance.py 3KB
settings.py 134B
components
ES6Test.jsx 273B
HelloWorld.jsx 181B
HelloWorldPlain.js 243B
ErrorThrowingComponent.jsx 192B
HelloWorldWrapper.jsx 417B
PerfTestComponent.jsx 238B
webpack.config.js 1KB
test_app
models.py 0B
static
test_app
StaticFileFinderComponent.jsx 201B
__init__.py 0B
package-lock.json 25KB
.npmignore 253B
runtests.py 674B
setup.cfg 39B
render.js 4KB
setup.py 1KB
.gitignore 790B
CHANGELOG.md 4KB
README.md 4KB
LICENSE.txt 1KB
共 71 条
- 1
资源评论
好摩
- 粉丝: 28
- 资源: 4635
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功