We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
TemperatureInput
D'abord, remplaçons this.state.température par this.props.température dans le composant TemperatureInput.
First, we will replace this.state.temperature with this.props.temperature in the TemperatureInput component.
Comme les props des deux composants TemperatureInput viennent du même composant parent Calculator, les deux champs seront toujours synchronisés.
Since the props of both TemperatureInput components are coming from the same parent Calculator component, the two inputs will always be in sync.
Le composant Calculator n'a pas accès à la température saisie, car elle est cachée dans le TemperatureInput.
Avant de modifier le composant Calculator, récapitulons les modifications apportées au composant TemperatureInput.
Before diving into the changes in the Calculator, let's recap our changes to the TemperatureInput component.
Nous allons supprimer l'état local de TemperatureInput et le déplacer dans le composant Calculator.
We will remove the local state from the TemperatureInput and move it into the Calculator instead.
Quand la température était dans l'état local, le composant TemperatureInput pouvait simplement appeler this.setState() pour la changer.
When the temperature was in the local state, the TemperatureInput could just call this.setState() to change it.
On peut commencer par extraire un composant TemperatureInput du code de Calculator.
We can start by extracting a TemperatureInput component from Calculator.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.