Quick start
PyScript-React installation
Via npm:
npm i pyscript-react
Via yarn:
yarn add pyscript-react
Via pnpm:
pnpm i pyscript-react
Installation of peer dependencies
Via npm:
npm i react prop-types
Via yarn:
yarn add react prop-types
Via pnpm:
pnpm i react prop-types
Installation of providers peer dependency
In the case when we would like to use PyScriptProvider
which provides pyscript script to the application, or PyScriptProviderZustandWrapper
which does the same thing, but additionally setting up pyScript state which stores pyScript global object we have to install react-helmet-async
.
Via npm:
npm i react-helmet-async
Via yarn:
yarn add react-helmet-async
Via pnpm:
pnpm i react-helmet-async
Installation of PyScriptProviderZustandWrapper peer dependency
PyScriptProviderZustandWrapper
uses zustand
under the hood. To works properly it needs zustand
package installed.
Via npm:
npm i zustand
Via yarn:
yarn add zustand
Via pnpm:
pnpm i zustand