React β€οΈ Mini Program
https://github.com/airbnb/goji-js.git
React β€οΈ Mini Program
GojiJS enables running React code on multi Mini Program platforms.
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.