Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement]: Улучшить типизацию полиморфных компонентов #4846

Open
eugpoloz opened this issue Apr 14, 2023 · 0 comments

Comments

@eugpoloz
Copy link
Contributor

Полиморфные компоненты — те, которые принимают в себя проп Component и из него рисуют рутовый элемент.

Для чего? Чтобы при замене Component "неподходящие" пропсы отлавливались:

href существует для a, но не для div

href существует для <a/>, но не для <div/>

@eugpoloz eugpoloz self-assigned this Apr 14, 2023
@eugpoloz eugpoloz added this to VKUI Apr 14, 2023
@github-project-automation github-project-automation bot moved this to 🗃 Backlog in VKUI Apr 14, 2023
@eugpoloz eugpoloz moved this from 🗃 Backlog to 🔧 In progress in VKUI Apr 14, 2023
@eugpoloz eugpoloz moved this from 🔧 In progress to 🔜 To do in VKUI Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔜 To do
1 participant