Quantcast
Channel: Stories by Flaha on Medium
Viewing all articles
Browse latest Browse all 85

Thanks. That's not accurate.

$
0
0

Thanks. That's not accurate. React is different from Angular. In React, you can't "render" without inserting the elements into DOM. That's why React uses the "Promise try catch" approach (which is weird IMHO). In our case, we're creating the component instance, but it does nothing until the setup() is resolved. Then, we call the ngOnInit hook and render the component's view into DOM.


Viewing all articles
Browse latest Browse all 85

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>