• Stars
    star
    121
  • Rank 293,924 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐘 My own tiny react-like rendering engine.

Alt text

Tembo

Tembo is my own react-like rendering engine implementation in 4kb.

Live Demo / Performance Test

API

Tembo.createClass(componentSpec)
const Message = Tembo.createClass({
  getInitialState: function() {
    return {
      message: 'Hello Word'
    }
  },
  render: function() {
    return Tembo.createElement('div', {}, this.state.message)
  }
})
Tembo.createElement(temboComponentClass || domNodeName,props,children)
  Tembo.createElement('div', {}, 'hello world')
Tembo.render(temboComponent, DOMNode)
  const component = Tembo.createElement(myMessage, {}, false)
  Tembo.render(component, document.getElementById('content'))