A
Size: a a a
A
NT
SM
SM
A
SM
PF
A
PF
IA
SM
VS
IA
SM
VB
SM
VS
PF
import React, {Component} from "react";
export default class Header extends Component {
constructor(props) {
super(props);
this.onClick = this.onClick.bind(this);
}
state = {
ariaExpanded: "false"
}
onClick = (e) => {
console.log(e)
this.setState({
ariaExpanded: this.state.ariaExpanded == "false" ? "true" : "false",
});
}
render(){
return (<div aria-expanded={this.state.ariaExpanded} onClick={this.onClick}> test </div>)
}
}
NT
PF