rsnext/examples/with-now-env/pages/index.js
Corbin Crutchley e03266008c form handler example: Update deps and fix build from dep update (#6732)
* form handler example: Update deps and fix build from dep update

* Ran lint error fixers

* Fixes errors that occur when commit occurs

* Commit linter fixes
2019-03-27 16:12:45 -04:00

21 lines
598 B
JavaScript

export default () => (
<div className='hello'>
<p>
Hello World! Here's a secret shared with the client using Next env:{' '}
<strong>{process.env.SECRET}</strong>, the secret is shared at compile
time, which means every reference to the secret is replaced with its value
</p>
<style jsx>{`
.hello {
font: 15px Helvetica, Arial, sans-serif;
background: #eee;
padding: 100px;
text-align: center;
transition: 100ms ease-in background;
}
.hello:hover {
background: #ccc;
}
`}</style>
</div>
)