πŸ“¦ airbnb / goji-js

React ❀️ Mini Program

β˜… 238 stars β‘‚ 28 forks πŸ‘ 238 watching βš–οΈ MIT License
miniappreactwechat-mini-program
πŸ“₯ Clone https://github.com/airbnb/goji-js.git
HTTPS git clone https://github.com/airbnb/goji-js.git
SSH git clone git@github.com:airbnb/goji-js.git
CLI gh repo clone airbnb/goji-js
Malash Malash Merge pull request #273 from airbnb/dependabot/npm_and_yarn/node-forge-1.3.2 e49613a 1 months ago πŸ“ History
πŸ“‚ main View all commits β†’
πŸ“ .config
πŸ“ .github
πŸ“ packages
πŸ“„ .gitignore
πŸ“„ .npmignore
πŸ“„ CHANGELOG.md
πŸ“„ LICENSE
πŸ“„ package.json
πŸ“„ README.md
πŸ“„ yarn.lock
πŸ“„ README.md

GojiJS

Goji Core Goji CLI Create Goji App

React ❀️ Mini Program

δΈ­ζ–‡ζ–‡ζ‘£

English Documentation

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:

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 (
    <View className={styles.wrapped}>
      <Text>{count}</Text>
      <Button onClick={() => setCount(count + 1)}>+</Button>
    </View>
  );
};

render(App);

For more details, see GojiJS official documentation website.