You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have the signup and signin components. They are almost the same, i.e. the only difference between them is that signup has an extra input name. The simplified markup for these components could be:
As I understand for each component I have to create a stylesheet file. But in this case should I create a separate stylesheet file for each component (signin.css, signup.css) and use composes? Will it follow the css-modules convention if I just leave it with auth.css and import it in the both components?
The text was updated successfully, but these errors were encountered:
The examples use the same component for both cases and it should be treated as a single component both for HTML and CSS. Split your components completely, not CSS only.
The AuthForm component:
<divclassName={root}><h2className={styles.title}>{{ title }}</h2><formclassName={styles.form}>
{{ children }}
</form></div>
Let's say I have the
signup
andsignin
components. They are almost the same, i.e. the only difference between them is thatsignup
has an extra inputname
. The simplified markup for these components could be:As I understand for each component I have to create a stylesheet file. But in this case should I create a separate stylesheet file for each component (
signin.css
,signup.css
) and use composes? Will it follow the css-modules convention if I just leave it withauth.css
and import it in the both components?The text was updated successfully, but these errors were encountered: