@framejs/renderer-react
A Framejs renderer for react
Last updated 2 years ago by emolr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @framejs/renderer-react 
SYNC missed versions from official npm registry.

@framejs/renderer-react

FrameJS rendererer for React.

Install

$ npm install @framejs/core @framejs/renderer-react react

Usage

import { CustomElement } from '@framejs/core';
import { withReact } from '@framejs/renderer-preact';
import React from 'react';

class ReactHello extends React.Component {
  render() {
    const { children, yell } = this.props;
    return <div>Hello, {yell ? <strong>{children}</strong> : children}!</div>;
  }
}

@CustomElement({
    tag: 'my-element'
})
class MyElement extends withReact(HTMLElement) {
    @Attribute() checked = true;

    render() {
        return <ReactHello yell={true}>ReactJS</ReactHello>
    }
}

Current Tags

  • 1.0.9                                ...           latest (2 years ago)

2 Versions

  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |