@teaui/react
v1.2.1
Published
React Reconciler and renderer for TeaUI
Maintainers
Readme
TeaUI + React
See TeaUI for more info about TeaUI itself. This library adds a React renderer/reconciler.
import {useReducer} from 'react'
import {interceptConsoleLog} from '@teaui/core'
import {
Box,
Button,
Stack,
run,
} from '@teaui/react'
// Recommended:
interceptConsoleLog()
function App() {
const [bang, goto10] = useReducer((state) => state + '!', '')
return <Box border="single">
<Stack.down>
First there was Ncurses{bang}
<Button onClick={goto10}>Tell me more!</Button>
</Stack.down>
</Box>
}
run()