Skip to content

Conversation

@vikkanaev
Copy link
Owner

Что сделано:

  • Проведен рефакторинг согласно принципам "Философия React"
  • Создана форма обратной связи
  • Создан пользовательский контекст

return (
<div>
<label>{label}</label>
{ React.createElement(type, { name, onChange, value }, null) }

Choose a reason for hiding this comment

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

если бы Type здесь оказался с большой буквы, то можно было бы просто <Type name={name}... />

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.

3 participants