node-webrender
TypeScript icon, indicating that this package has built-in type declarations

0.1.11 • Public • Published

title: Home permalink: /

node-webrender

webrender bindings for node.js & react


const App = () => {
  const [count, setCount] = useState(0)
  const dec = () => setCount(count - 1)
  const inc = () => setCount(count + 1)
 
  return (
    <View style={styles.counter}>
      <Text>{count}</Text>
 
      <View style={[styles.bar, { width: count * 5 }]} />
 
      <View style={styles.buttons}>
        <Button title="--" onPress={dec} />
        <Button title="++" onPress={inc} />
      </View>
    </View>
  )
}
 
const styles = StyleSheet.create({
  counter: {
    flex: 1,
    padding: 20,
    justifyContent: 'space-between'
  },
 
  bar: {
    backgroundColor: '#ff0000',
    height: 20
  },
 
  buttons: {
    flexDirection: 'row',
    justifyContent: 'space-between'
  }
})

Please note there is no DOM, nor any web technology involved in this project, unlike what you might expect from such name. Read more here


Documentation

Please refer to respective sub-page on the project website

/node-webrender/

    Package Sidebar

    Install

    npm i node-webrender

    Weekly Downloads

    1

    Version

    0.1.11

    License

    MIT

    Unpacked Size

    200 kB

    Total Files

    86

    Last publish

    Collaborators

    • cztomsik