|
|
|
|
|
by jsprogram
1637 days ago
|
|
Some of the vanilla JavaScript methods come from libraries, for example querySelector and fetch. It used to take a few lines of code and a callback to do a XHR in JavaScript, then it was replaced by fetch. In the older example, you can just use querySelector and fetch from the library then ignore the rest of the library. You can also look for libraries that are short, for example Redux. It was much shorter than Flux but was so much better that the Flux creators recommended Redux. |
|