javascript - React: Wrapping element vs. regular JS Library -
i new react , enjoy ecosystem. today found webfont loader react. when used, looks this:
<webfontloader config={config}> <app /> </webfontloader> what advantage of implementing react component vs. regular js library used part of application? "react way" things?
i see need when using context (like in redux provider), otherwise, not sure.
edit: "regular js library" referring including file in build waits dom ready , calls webfont loader directly, without using wrapping element in react.
Comments
Post a Comment