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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -