Fix some issues in README

This commit is contained in:
Angelos Chalaris
2019-02-02 13:54:37 +02:00
parent 5838a99c4b
commit c867018fc3
3 changed files with 7 additions and 9 deletions

View File

@ -4,9 +4,6 @@
> Curated collection of useful React snippets that you can understand in 30 seconds or less.
> *This README is built using [markdown-builder](https://github.com/30-seconds/markdown-builder).*
#### Related projects
* [30 Seconds of Code](https://30secondsofcode.org)
@ -706,7 +703,9 @@ Finally, in the `render()` method, use a `<div>` to wrap everything and render t
.dialog-content {
min-width: 300px;
}
```,```jsx
```
```jsx
class ModalDialog extends React.Component {
constructor() {
super();
@ -892,7 +891,9 @@ Define `changeTab`, which will be executed when clicking a `<button>` from the `
.tab-menu > button:hover {
border-bottom: 2px solid #007BEF;
}
```,```jsx
```
```jsx
class Tab extends React.Component {
constructor(props) {
super(props);

View File

@ -78,7 +78,7 @@ try {
const taggedSnippets = snippetsInTag[tag];
taggedSnippets.forEach(snippet => {
output += headers.h3(snippet.title).trim();
output += `\n\n${snippet.text}${snippet.codeBlocks.slice(0,-1)}`;
output += `\n\n${snippet.text}${snippet.codeBlocks.slice(0,-1).join('\n\n')}`;
if (snippet.notes && snippet.notes.length) {
output += headers.h4('Notes');
output += `\n${snippet.notes}`;

View File

@ -4,9 +4,6 @@
> Curated collection of useful React snippets that you can understand in 30 seconds or less.
> *This README is built using [markdown-builder](https://github.com/30-seconds/markdown-builder).*
#### Related projects
* [30 Seconds of Code](https://30secondsofcode.org)