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

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

string - Using python and postgres, variables within execute function? -