Skip to content

bobzhang/rescript-react-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A demo to show ReScript with React under 1K

Simplicity is the virtue

  • There are only 3 directories under node_modules, the compiler, the bundler and @rescript/react, no node_modules black hole.

  • The bundled output is tiny. It is self-contained, we treat the well established libraries: React and ReactDOM as a blackbox using import maps shipped with chrome 89

  • Set up an http server, you should see an output as below

image

  • It scales. The ReScript build system can handle more than 10K files in a repo around 1~200ms.

Build

npx bsb -make-world && node ./bundle.js

About

A demo to show ReScript with React under 1K

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published