Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rackt-org/rackt

An ultrasmall (~70 loc) React wrapper written in RacketScript
https://github.com/rackt-org/rackt

javascript racket racketscript react

Last synced: 3 months ago
JSON representation

An ultrasmall (~70 loc) React wrapper written in RacketScript

Awesome Lists containing this project

README

        

# [Rackt](https://rackt-org.github.io) ยท [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rackt-org/rackt/blob/master/LICENSE)

> An ultra small (~70 loc) [React](https://github.com/facebook/react) wrapper written in [RacketScript](https://github.com/racketscript/racketscript)

Rackt allows you to develop full-featured React web apps in RacketScript. You can use all React compatible libraries with it as well.

## Key featrures

- ๐Ÿชถ **Ultra small**. Rackt is a pretty thin wrapper for React. Just consider you use React but with RacketScript.
- โšก **Super lightweight**. Compiled code takes only 6 Kb ungzipped.
- ๐Ÿ”Œ **Easy to use API**. All transformations between JavaScript and RacketScript primitives happen under the hood. You can focus on writing code.
- โœจ **Modern**. It has first-class support of functional components and hooks.

Here you can see an example of a pretty simple Rackt-component:

```racket
(define (counter props ..)
(define-values (counter set-counter) (use-state 0))

(