Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/woeps/solidjs-rescript

Use solidjs with the rescript language
https://github.com/woeps/solidjs-rescript

Last synced: 4 months ago
JSON representation

Use solidjs with the rescript language

Awesome Lists containing this project

README

        

[![Netlify Status](https://api.netlify.com/api/v1/badges/18a91c54-7396-479e-ae04-1c5bdca71861/deploy-status)](https://app.netlify.com/sites/solidjs-rescript/deploys)

## NOTE
This repository contains **experimental** code to enable the usage of [SolidJs](solidjs.com) with the [rescript](rescript-lang.org) language.

Once (if at all) a feasable and developer friendly set of bindings has been worked out, they will be published as a separate npm package.

------

`JSX` is only supported for custom components (e.g. ``, if the module `App` contains a function `createElement`). `

..
` is not easily possible without developing a ppx. Therefore we need to use [Hyperscript](https://github.com/solidjs/solid/tree/main/packages/solid/h).

## Usage

```bash
$ npm install
```

## Available Scripts

In the project directory, you can run:

### `npm start`

Compiles rescript files on change and runs the app in the development mode.

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.

### `npm run bundle`

Builds all rescript files and bundles the app for production to the `dist` folder.

It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed!

## Deployment

You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)