I like the idea of hooks but not the way they're implemented. The syntax is ugly, there's too much magic going on, too easy to introduce stale state bugs in custom effects. And this whole dependency array thing gives me Ember.js computed property flashbacks.
Lol this is very close to being spam & somehow it has 5 upvotes? The title is misleading. One cannot set the default route in ReactJS. You can do that in React Router or similar routing library