Skip to content

ht 7.1#64

Open
annakovarskaya wants to merge 1 commit into
romabelka:masterfrom
annakovarskaya:master
Open

ht 7.1#64
annakovarskaya wants to merge 1 commit into
romabelka:masterfrom
annakovarskaya:master

Conversation

@annakovarskaya
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@romabelka romabelka left a comment

Choose a reason for hiding this comment

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

Статью не починил

Comment thread src/App.js
user: this.state.username
user: this.state.username,
lang: this.state.language,
vocab: this.state.vocabulary
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.

Удобнее один словарь хранить


static contextTypes = {
vocab: PropTypes.object,
lang: PropTypes.string
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.

тут и в других местах: лучше сделай декоратор либо компонент-обертку для локализации, чтоб не обращатся каждый раз к контексту, иначе потом тяжело будет что-либо поменять

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