Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/woeps/solidjs-rescript
- Owner: woeps
- Created: 2021-12-20T00:58:38.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-20T02:08:48.000Z (about 3 years ago)
- Last Synced: 2024-08-01T19:55:57.090Z (7 months ago)
- Language: ReScript
- Homepage: https://solidjs-rescript.netlify.app/
- Size: 28.3 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](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.)