react-run

Run React code snippets without config 🚀

Usage

The entry point is always a component called App 👇

```tsx // example.tsx

function ProductList({ products }: { products: string[] }) { return products.map((p: string) =>

  • {p}
  • ); }

    export default function App() { const style: { [key: string]: string } = { background: "lightgray", padding: "1em", };

    return (

    Our Products
    ); } ```

    Run it 🏃

    sh react-run example.tsx

    Or run a hosted file 🤖

    sh react-run https://raw.githubusercontent.com/UltiRequiem/react-run/main/examples/typescript.tsx

    This will open your default browser with your component loaded 🤯

    Features

    Check the examples/ to see what is supported.

    Installation

    Cargo is the Rust package manager.

    sh cargo install react-run

    Or use a binary from releases.

    Standing on the shoulders of giants

    Roadmap

    Support

    Open an Issue, I will check it a soon as possible 👀

    If you want to hurry me up a bit send me a tweet 😆

    Consider supporting me on Patreon if you like my work 🙏

    Don't forget to start the repo ⭐

    Versioning

    We use Semantic Versioning. For the versions available, see the tags 🏷️

    Authors

    Eliaz Bobadilla - Creator and Maintainer 💪

    See also the full list of contributors who participated in this project ✨

    Licence

    Licensed under the MIT License 📄