mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
ec2b76f83b
* Display data fetching errors in Apollo examples. * Prevent Apollo GraphQL errors from crashing SSR. Also tidied a few comments in the vicinity.
14 lines
226 B
JavaScript
14 lines
226 B
JavaScript
export default ({message}) => (
|
|
<aside>
|
|
{message}
|
|
<style jsx>{`
|
|
aside {
|
|
padding: 1.5em;
|
|
font-size: 14px;
|
|
color: white;
|
|
background-color: red;
|
|
}
|
|
`}</style>
|
|
</aside>
|
|
)
|