Skip to content

Commit

Permalink
Remove redundant word
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Nov 21, 2016
1 parent 69ea71f commit 4590cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ch04/props-state-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class MarkdownEditor extends React.Component {
handleChange() {
this.setState({value: this.refs.textarea.value});
}
// 將使用者輸入的 Markdown 語法 parse 成 HTML 放入 DOM 中,React 通常使用 virtual DOM 作為和 DOM 溝通的中介,不建議直接由操作 DOM。故使用時的屬性為 dangerouslySetInnerHTML
// 將使用者輸入的 Markdown 語法 parse 成 HTML 放入 DOM 中,React 通常使用 virtual DOM 作為和 DOM 溝通的中介,不建議直接操作 DOM。故使用時的屬性為 dangerouslySetInnerHTML
rawMarkup() {
const md = new Remarkable();
return { __html: md.render(this.state.value) };
Expand Down

0 comments on commit 4590cc4

Please sign in to comment.