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

https://github.com/lee88688/quickgl


https://github.com/lee88688/quickgl

jerryscript lvgl react reactjs

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# Quickgl

Quickgl is project for empowering LVGL with React. Our goal is using LVGL and reactjs to quickly build UI in embeded devices.

## Simulate

currently you can compile code to wasm, and simulate, I create a [repo](https://github.com/lee88688/react-webpack-typescript-starter) for this.
you can create this

![](./artworks/screenshot.png)

by jsx
```jsx
// App.tsx
import React, {useEffect, useState} from 'react';
import styles from './index.lv.css';

export default function App() {
const [cnt, setCnt] = useState(0);

return (
setCnt(cnt + 1)}>
{/* */}

{`1hello${cnt}\nsecond`}

{`2hello${cnt}`}

);
}
```

and css

```css
/* index.lv.css */
.s1 {
left: 100px;
top: 0px;
width: 500px;
height: 300px;
display: flex;
flex-direction: column;
padding-top: 0px;
border-color: rgb(226, 226, 208);
border-width: 5px;
}

.s2 {
left: 50%;
transform: translate(50px, 50px);
}

.s3 {
height: 100px;
background-color: salmon;
}
```

## Framework
![](./artworks/quickgl-framework.svg)