i-like-robots / hyperons

🔥 The fastest JSX to string renderer on the server and in the browser.
https://www.npmjs.com/package/hyperons
MIT License
45 stars 4 forks source link

Support classes with a render method #11

Closed i-like-robots closed 6 years ago

i-like-robots commented 6 years ago

It should be possible to support simple class based components. It may also be worth investigating how lifecycle methods from the various frameworks may be invoked when rendering static markup.

class Foo extends Component {
  render () {
    return (
      <h1>Hello World</h1>
    )
  }
}