fix: introduced forwardRef (#181)

This commit is contained in:
Priscila Oliveira
2019-10-12 22:26:56 +02:00
committed by Juan Picado @jotadeveloper
parent a8deeb9b9d
commit 0c4fb7da13
14 changed files with 26 additions and 17 deletions

View File

@@ -0,0 +1,10 @@
import React, { forwardRef } from 'react';
import { default as MaterialUIList, ListProps } from '@material-ui/core/List';
type ListRef = HTMLUListElement;
const List = forwardRef<ListRef, ListProps>(function List(props, ref) {
return <MaterialUIList {...props} ref={ref} />;
});
export default List;

View File

@@ -0,0 +1 @@
export { default } from './List';