Closed golubvladimir closed 5 years ago
What to do with div in internal ref ?
componentDidMount() { // with re actions } /// jsx ... <LazyLoad> <div className='block-item__content' style={{ backgroundImage: `url(${ img })` }} > <TitleElement bold={true} className={'block-item__title'} level={'three'} ref={ref => this._title = ref} // inner ref >{ this.state.title }</TitleElement> { type ? <Caption className={'block-item__type'}>{ type }</Caption> : null } </div> </LazyLoad>
Moved ref to a separate component.
What to do with div in internal ref ?