1.2.5 • Published 4 months ago

@teaui/preact v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

TeaUI + Preact

See TeaUI for more info about TeaUI itself. This library adds a Preact renderer/reconciler.

import {useReducer} from 'preact/hooksZ'
import {interceptConsoleLog} from '@teaui/core'
import {
  Box,
  Button,
  Stack,
  run,
} from '@teaui/preact'

// 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()
1.2.5

4 months ago

1.2.4

4 months ago

1.2.3

5 months ago

1.2.2

5 months ago

1.2.1

8 months ago

1.2.0

8 months ago

1.1.5

8 months ago

1.1.4

8 months ago