<p dir="auto">Exactly like you support the _error.js file.<br>
This would solve a common question people are asking (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="185235752" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/71" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/71/hovercard" href="https://github.com/vercel/next.js/issues/71">#71</a>, <a href="https://twitter.com/luisrudge/status/790946965123112960" rel="nofollow">https://twitter.com/luisrudge/status/790946965123112960</a>).</p>
<p dir="auto">The idea is look for a _layout.js file. If it exists, render it passing the current route's content as children.</p>
<p dir="auto">Having animated route transitions would be nice, as this is one of the many benefits through client-side routing. Doing so should be left up to the user in my opinion (some people prefer CSS transitions over more fine-grained control with <code class="notranslate">react-motion</code> etc). As I understand it, one would need to modify the top-level App component.</p>
<p dir="auto">The <a href="https://github.com/zeit/next.js/blob/master/client/next.js#L13">client entry file</a> seems to look for a globally assigned <code class="notranslate">__NEXT_DATA__.app</code> variable but I can't find any documentation on that.</p>