Re:Lessons learned as a React contractor
by rbalicki on Friday January 06, 2017 @08:56AM
(#13336183)
No, some libraries (like React-bootstrap) export a bunch of components that don't really need a facade. But be careful. Later, when you need to modify functionality (and it can't be done via modifying the bootstrap variables via Less) it's a slight pain to retrofit.
[ Parent
| on HN ]
Re:Lessons learned as a React contractor
by zinckiwi on Friday January 06, 2017 @09:48AM
(#13336557)
Even so, I like to keep the imports local so I only have to change one reference to a custom-wrapped version if/when the need arises. I have a lib file to act as a manifest of components, and while most are mine, there are also some "export {Grid} from 'react-bootstrap'" type things in there.