Commit 7cf9199a authored by moondef's avatar moondef Committed by Tim Neutkens

Add alt attributes to examples in readme.md (#4053)

parent 14a16924
...@@ -178,7 +178,7 @@ To support importing `.css` `.scss` or `.less` files you can use these modules, ...@@ -178,7 +178,7 @@ To support importing `.css` `.scss` or `.less` files you can use these modules,
Create a folder called `static` in your project root directory. From your code you can then reference those files with `/static/` URLs: Create a folder called `static` in your project root directory. From your code you can then reference those files with `/static/` URLs:
```jsx ```jsx
export default () => <img src="/static/my-image.png" /> export default () => <img src="/static/my-image.png" alt="my image" />
``` ```
### Populating `<head>` ### Populating `<head>`
...@@ -405,7 +405,7 @@ export default () => ...@@ -405,7 +405,7 @@ export default () =>
<div> <div>
Click{' '} Click{' '}
<Link href="/about"> <Link href="/about">
<img src="/static/image.png" /> <img src="/static/image.png" alt="image" />
</Link> </Link>
</div> </div>
``` ```
...@@ -1191,7 +1191,7 @@ console.log(serverRuntimeConfig.mySecret) // Will only be available on the serve ...@@ -1191,7 +1191,7 @@ console.log(serverRuntimeConfig.mySecret) // Will only be available on the serve
console.log(publicRuntimeConfig.staticFolder) // Will be available on both server and client console.log(publicRuntimeConfig.staticFolder) // Will be available on both server and client
export default () => <div> export default () => <div>
<img src={`${publicRuntimeConfig.staticFolder}/logo.png`} /> <img src={`${publicRuntimeConfig.staticFolder}/logo.png`} alt="logo" />
</div> </div>
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment