Fix some issues in README
This commit is contained in:
11
README.md
11
README.md
@ -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);
|
||||
|
||||
@ -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}`;
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user