import React from 'react' ; type Result = any ; /**
 * A webpack context, given by `require.context(...)`.
 */ type WebpackContextFn = ( id : string ) => Result | { default ? : Result ; } ; interface WebpackContext extends WebpackContextFn { keys : ( ) => string [ ] ; } example const CombineWebpackContext = ( { context } ) => { const list = context . keys ( ) . map ( ( key ) => { const Component = context ( key ) . default ; if ( ! Component ) return null ; return < Component key = { key } />; } ) ; return < > { list } < />; } ; export default CombineWebpackContext ;