Skip to content

guisouza/tEmbO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt text

Tembo

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

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'))

About

🐘 My own tiny react-like rendering engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •