-
Notifications
You must be signed in to change notification settings - Fork 1
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
Auth pages #5
Auth pages #5
Conversation
rkkmkkfx
commented
Sep 1, 2022
- страницы sign-in/sign-up без бизнес-логики
* new pages * Input component * react-hook-form package
* default values * signup form styles
* signup form heading
|
||
export type InputProps = OwnProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'pattern'>; | ||
|
||
const Input = forwardRef<HTMLInputElement, InputProps>((props, ref) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно деструктуризацию сразу в аргументах сделать
код компактнее будет
@@ -0,0 +1,4 @@ | |||
import Input from './Input'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можно написать вот так
import Input from './Input'; | |
export { default } from './Input'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, всегда так делал, но eslint после какого-то обновления начал кровить на такие реэкспорты, тут вот решают проблему