pyscript-solid
v1.4.0
Published
Use PyScript together with Solid.js.
Downloads
4
Maintainers
Readme
PyScript Solid
Use PyScript together with Solid.js.
Getting Started
Installation
Install pyscript-solidjs using npm:
npm install pyscript-solidjs
# or
yarn add pyscript-solidjs
# or
pnpm install pyscript-solidjs
Usage
Simple Hello World in pyscript-solid.
import type { Component } from "solid-js";
import { PyScript, PyScriptProvider } from "pyscript-solid";
const App: Component = () => {
return (
<PyScriptProvider>
<PyScript>print("Hello World")</PyScript>
</PyScriptProvider>
);
};
export default App;
You can find more examples under the examples
directory.