Skip to content

ht1 done#4

Closed
musiclover174 wants to merge 4 commits into
romabelka:masterfrom
musiclover174:master
Closed

ht1 done#4
musiclover174 wants to merge 4 commits into
romabelka:masterfrom
musiclover174:master

Conversation

@musiclover174
Copy link
Copy Markdown

  • Компонент dayPicker'а взял целиком, заимпортил, как инстанс-компонент и просто использовал на странице.
  • разделил по папка article (article + articleList) и comments (comment + commentsList)
  • propTypes для комментсов добавил

Comment thread src/daypicker.js
@@ -0,0 +1,77 @@
import React from 'react';
import Helmet from 'react-helmet';
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем тебе react-helmet, никогда не копируй необдуманно примеры из документаций

Comment thread src/decorators/toggle.js Outdated
@@ -0,0 +1,13 @@
import React from 'react'

export default (OriginalToggle) => class DecoratedToggle extends React.Component {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DecoratedComponent я называл чтоб легче понять было. Лучше выбирай более значущее название

jekahm added a commit to jekahm/basic-react-1902 that referenced this pull request Mar 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants