Skip to content

Create screens#50

Open
Mariusz-web wants to merge 2 commits intomasterfrom
issue-49-feat/create-login-register-screen
Open

Create screens#50
Mariusz-web wants to merge 2 commits intomasterfrom
issue-49-feat/create-login-register-screen

Conversation

@Mariusz-web
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented May 22, 2022

Deploy Preview for stellar-platypus-904acb ready!

Name Link
🔨 Latest commit 01f5e74
🔍 Latest deploy log https://app.netlify.com/sites/stellar-platypus-904acb/deploys/628a5438aa34de000873eac2
😎 Deploy Preview https://deploy-preview-50--stellar-platypus-904acb.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Mariusz-web Mariusz-web linked an issue May 22, 2022 that may be closed by this pull request
Copy link

@Veryyapeee Veryyapeee left a comment

Choose a reason for hiding this comment

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

Also remove console.logs, or add TODO comments

<BrowserRouter>
<Routes>
<Route
{/* <Route

Choose a reason for hiding this comment

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

why is it commented? Also the login/register screen shouldn't have header


export const Register = () => {
return <div>Register</div>;
const [firstName, setFirstName] = useState('');

Choose a reason for hiding this comment

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

That patters is realllyyy bad, for many many reasons
The obvious ones (except for readability etc.) are:

  1. State shouldn't be decentralized like that
  2. Each type in each input would case rerender
  3. Creating validation for that would be now just pain in the ass

Doing that using react-hook-form would take probably like 5 minutes, especially that we have code for forms like that in previous project

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.

feat/create-login-register-screen

2 participants