how to pass props to lodables.lib()
💬 Questions and Help
Trying to load react-dropdown lib via lodable.lib(). it is not loading the component
Using Ordinary import:
import Drop form 'react-dropdown';
const dropOptions = ['one', 'two', 'three'];`
....
render() {
return (<Drop options={dropOptions/>)
}}
Using lodable.lib():
const Drop= loadable.lib(() => import('react-dropdown'));
const dropOptions = ['one', 'two', 'three'];`
....
render() {
return (<Drop options={dropOptions/>)
}}
It was working with ordinary import, but now with loadabl.lib
Can you help if any syntax is wrong or any extra steps is needed to load the 3rd party libs in loadable. Thanks,
Hey @smsivaprakaash :wave:, Thank you for opening an issue. We'll get back to you as soon as we can. Please, consider supporting us on Open Collective. We give a special attention to issues opened by backers. If you use Loadable at work, you can also ask your company to sponsor us :heart:.
was able to find out the syntax for it. without using lib()
const Drop= loadable(() => import('react-dropdown));
yep. Everything what is Components is not a lib