Use the new JSX transform (#25064)
This commit is contained in:
		
					parent
					
						
							
								e387175fc9
							
						
					
				
			
			
				commit
				
					
						8f66126b10
					
				
			
		
					 241 changed files with 366 additions and 473 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| import React from 'react'; | ||||
| import { cloneElement, Component } from 'react'; | ||||
| import PropTypes from 'prop-types'; | ||||
| import scheduleIdleTask from '../features/ui/util/schedule_idle_task'; | ||||
| import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; | ||||
|  | @ -6,7 +6,7 @@ import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; | |||
| // Diff these props in the "unrendered" state | ||||
| const updateOnPropsForUnrendered = ['id', 'index', 'listLength', 'cachedHeight']; | ||||
| 
 | ||||
| export default class IntersectionObserverArticle extends React.Component { | ||||
| export default class IntersectionObserverArticle extends Component { | ||||
| 
 | ||||
|   static propTypes = { | ||||
|     intersectionObserverWrapper: PropTypes.object.isRequired, | ||||
|  | @ -115,14 +115,14 @@ export default class IntersectionObserverArticle extends React.Component { | |||
|           data-id={id} | ||||
|           tabIndex={0} | ||||
|         > | ||||
|           {children && React.cloneElement(children, { hidden: true })} | ||||
|           {children && cloneElement(children, { hidden: true })} | ||||
|         </article> | ||||
|       ); | ||||
|     } | ||||
| 
 | ||||
|     return ( | ||||
|       <article ref={this.handleRef} aria-posinset={index + 1} aria-setsize={listLength} data-id={id} tabIndex={0}> | ||||
|         {children && React.cloneElement(children, { hidden: false })} | ||||
|         {children && cloneElement(children, { hidden: false })} | ||||
|       </article> | ||||
|     ); | ||||
|   } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue