diff --git a/src/App.js b/src/App.js index b3cb760..f790de8 100644 --- a/src/App.js +++ b/src/App.js @@ -231,6 +231,8 @@ class App extends React.Component { addTag={this.addTag} removeTag={this.removeTag} deleteArticle={this.deleteArticle} + selectTag={this.selectTag} + handleChange={this.handleChange} {...this.state} /> ) @@ -240,6 +242,7 @@ class App extends React.Component { handleChange={this.handleChange} updateArticle={this.updateArticle} navigate={this.navigate} + selectTag={this.selectTag} {...this.state} /> ) diff --git a/src/components/article.js b/src/components/article.js index 4a1d274..20a80ec 100644 --- a/src/components/article.js +++ b/src/components/article.js @@ -1,4 +1,5 @@ import React from 'react' +import Tags from './tags' class Article extends React.Component { constructor(props) { @@ -10,12 +11,17 @@ class Article extends React.Component { render() { return (
- +

{this.state.title}

-
{this.state.text}
- +
{this.state.text}
+
+ + +
+

Comments