Skip to content

SushiWaUmai/pyscript-solid

Repository files navigation

PyScript Solid

npm License

Use PyScript together with Solid.js.

Getting Started

Installation

Install pyscript-solid using npm:

npm install pyscript-solid
# or
yarn add pyscript-solid
# or
pnpm install pyscript-solid

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.

License

This library is lilcensed under the MIT license.