jedireza / hapi-react-views

:package: A hapi view engine for React components
MIT License
231 stars 33 forks source link

React Events? #39

Closed Gattermeier closed 8 years ago

Gattermeier commented 8 years ago

I was trying to add forms and events (onSubmit, onChange, onClick) to a template. It seems those do not get attached to the rendered html output?

` import React from 'react'

class Component extends React.Component { constructor() { super() this.state = {clicked: false} this.handleClick = this.handleClick.bind(this); } handleClick() { this.setState({clicked: !this.state.clicked}) } render() { return (

Click
)

} }

export default Component `

Any hints?

Gattermeier commented 8 years ago

syr for duplicate