0.3.5 • Published 5 years ago

zzeact v0.3.5

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Zzeact

Zzeact is a JavaScript library to learn the source code of React.

Todo

  • DOM render
  • Event
  • LifeCycle
  • React Components
  • Components Update
  • JSX

Install

yarn add zzeact
npm install zzeact --save

Quick Start

var Examples = Zzeact.createClass({
  render: () => Zzeact.DOM.p(
    {
      style: {
        margin: 0,
        fontSize: 16,
        color: 'red'
      }
    },
    'Zzeact is rendered'
  )
})

Zzeact.renderComponent(
  Examples(null, 'children'),
  document.getElementById('container')
)

Now, You can using type="text/jsx" beacuse i integrated JSXTransformer.js

/**
 * @jsx Zzeact.DOM
 */
const ExampleApplication = Zzeact.createClass({
  render: function () {
    const style = { margin: 0, fontSize: 16, color: 'red' }
    return <p style={style}>Zzeact is rendered</p>
  }
})

Zzeact.renderComponent(
  <ExampleApplication />,
  document.getElementById('container')
)

Or, you can see examples.

License

MIT

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago