Skip to content

Рефакторинг#4

Open
coderIvanTS wants to merge 2 commits intodashanalivayko:mainfrom
coderIvanTS:fix
Open

Рефакторинг#4
coderIvanTS wants to merge 2 commits intodashanalivayko:mainfrom
coderIvanTS:fix

Conversation

@coderIvanTS
Copy link

No description provided.

@@ -0,0 +1,8 @@
import "./style.scss";

export const Button = ({ onClick, children }: {onClick: () => void, children?: string}) => {

Choose a reason for hiding this comment

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

Предлагаю сделать отдельный тип

import './style.scss';

interface FormProps {
onUserAddition: (user: any) => void; // Принимаем функцию для обновления состояния верхнего компонента

Choose a reason for hiding this comment

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

Any стоит убрать

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