Skip to content

woeps/solidjs-rescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netlify Status

NOTE

This repository contains experimental code to enable the usage of SolidJs with the rescript 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. <App />, if the module App contains a function createElement). <div>..</div> is not easily possible without developing a ppx. Therefore we need to use Hyperscript.

Usage

$ 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 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.)