Re:Things every React.js beginner should know
by tomjen3 on Monday January 25, 2016 @11:32AM
(#10968068)
Only in the appropriately named render method, which will use code to choose what to render and not to do anything else. How else would you satisfy the requirement to display a list of items and a special item if the list is empty?
The danger you run into is PHP nightmares where the programmer has e.g code that accesses and fetches items from a database in the middle of the view.
The danger you run into is PHP nightmares where the programmer has e.g code that accesses and fetches items from a database in the middle of the view.