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

https://github.com/airbnb/goji-js

React ❤️ Mini Program
https://github.com/airbnb/goji-js

miniapp react wechat-mini-program

Last synced: 5 months ago
JSON representation

React ❤️ Mini Program

Awesome Lists containing this project

README

          

# GojiJS

![Goji Core](https://img.shields.io/npm/v/@goji/core?label=Goji%20Core)
![Goji CLI](https://img.shields.io/npm/v/@goji/cli?label=Goji%20CLI)
![Create Goji App](https://img.shields.io/npm/v/create-goji-app?label=Create%20Goji%20App)

React ❤️ Mini Program

[中文文档](https://goji.js.org/zh/docs/get-started/introduction)

[English Documentation](https://goji.js.org/docs/get-started/introduction)

## Visions

GojiJS enables running React code on multi Mini Program platforms.

## Features

- Fully supports React

You can use the latest version of React in GojiJS. Features including class / functional components,
hooks, portal can work well on GojiJS.

- Cross platforms ability

For now, GojiJS supports these platforms:

- WeChat
- Baidu
- Alipay
- QQ
- Toutiao

## Demo

In GojiJS you can write React code like this:

```js
import React, { useState } from 'react';
import { View, Text, Button, render } from '@goji/core';
import styles from './index.css';

const App = () => {
const [count, setCount] = useState(0);
return (

{count}
setCount(count + 1)}>+

);
};

render(App);
```

For more details, see [GojiJS official documentation website](https://goji.js.org/).