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

Erreurs lors de l'introduction des props #2

Open
rem711 opened this issue Sep 22, 2021 · 0 comments
Open

Erreurs lors de l'introduction des props #2

rem711 opened this issue Sep 22, 2021 · 0 comments

Comments

@rem711
Copy link

rem711 commented Sep 22, 2021

Bonjour,

Dans le chapitre 7135822-reutilisez-vos-composants-avec-les-props, lors de l'explication sur les props et comment les récupérer il est indiqué :
<CareScale scaleValue={plant.light} />

Et pour y accéder à deux reprises :

function CareScale(props) {
    const scaleValue = props.value
    ...
}

Alors qu'il serait attendu :

function CareScale(props) {
    const scaleValue = props.scaleValue 
    ...
}
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

No branches or pull requests

1 participant