Closed Gattermeier closed 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 (
)
} }
export default Component `
Any hints?
syr for duplicate
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 (
} }
export default Component `
Any hints?