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.
composant TemperatureInput
First, we will replace this.state.temperature with this.props.temperature in the TemperatureInput component.
D'abord, remplaçons this.state.température par this.props.température dans le composant TemperatureInput.
Since the props of both TemperatureInput components are coming from the same parent Calculator component, the two inputs will always be in sync.
Comme les props des deux composants TemperatureInput viennent du même composant parent Calculator, les deux champs seront toujours synchronisés.
Before diving into the changes in the Calculator, let's recap our changes to the TemperatureInput component.
Avant de modifier le composant Calculator, récapitulons les modifications apportées au composant TemperatureInput.
We will remove the local state from the TemperatureInput and move it into the Calculator instead.
Nous allons supprimer l'état local de TemperatureInput et le déplacer dans le composant Calculator.
When the temperature was in the local state, the TemperatureInput could just call this.setState() to change it.
Quand la température était dans l'état local, le composant TemperatureInput pouvait simplement appeler this.setState() pour la changer.
We can start by extracting a TemperatureInput component from Calculator.
The Calculator doesn't know the current temperature because it is hidden inside the TemperatureInput. Writing Conversion Functions
Le composant Calculator n'a pas accès à la température saisie, car elle est cachée dans le TemperatureInput.
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.