react-use-p5:在React中使用带有钩子的 p5

时间:2021-08-04 17:06:07
【文件属性】:
文件名称:react-use-p5:在React中使用带有钩子的 p5
文件大小:556KB
文件格式:ZIP
更新时间:2021-08-04 17:06:07
react hooks p5js JavaScript React使用-p5 使用带钩子的 p5 安装 # with npm npm install --save @gen/react-use-p5 # with yarn yarn add @gen/react-use-p5 用法 import React , { Component } from 'react' ; import { useP5 } from '@gen/react-use-p5' ; import { sketch } from 'your-p5-sketch-file' ; const Component = ( ) => { const [ setRef ] = useP5 ( sketch ) ; // Canvas will be rendered as child of div return < div xss=removed>
【文件预览】:
react-use-p5-master
----.eslintrc(568B)
----.github()
--------workflows()
----src()
--------index.tsx(706B)
--------__tests__()
--------react-app-env.d.ts(40B)
--------typings.d.ts(216B)
----.release-it.js(83B)
----tsconfig.test.json(87B)
----example()
--------public()
--------src()
--------README.md(263B)
--------package-lock.json(1.27MB)
--------package.json(825B)
----tsconfig.json(867B)
----.prettierrc(195B)
----README.md(819B)
----.env.template(14B)
----renovate.json(338B)
----.editorconfig(147B)
----.gitignore(281B)
----.eslintignore(47B)
----package-lock.json(1.73MB)
----package.json(2KB)

网友评论