.el:hover > .children {
...
}
.el:hover + .el {
...
}
echo do_shortcode( '<div class="contact-us2"><a href="#contact_form_pop_up" class="fancybox-inline">Узнать цену</a></div> <div style="display:none" class="fancybox-hidden"> <div id="contact_form_pop_up"> [contact-form-7 id="13297" title="Узнать цену"] </div> </div>' );
someFunction = () => {
const {sms} = this.state;
sms.disabled = true;
this.setState({sms});
}
someFunction = () => {
this.setState({sms: {...this.state.sms, disabled: true}});
}
someFunction = () => {
this.setState(prevState=>({sms: {...prevState.sms, disabled: true}}));
}
class Container extends React.Component {
state = {
showModal: false
}
handleModal = () => {
this.setState({showModal: !this.state.showModal});
}
render() {
return (
<Fragment>
{ this.state.showModal && <MyModal handleModal={this.handleModal}/> }
<button onClick={this.handleModal}> Show modal </button>
</Fragment>
)
}