Skip to main content

I tryI'm trying to domake a timer in React but, I have a problem,. The error that I haveam getting is this problem Uncaught TypeError: Cannot read property 'seconds' of undefined'.

Uncaught TypeError: Cannot read property 'seconds' of undefined'.

I tryhave tried to understand but, I can't find the problem.

Can someone help me ?

Here is the fiddle :

Thank you.

  https://jsfiddle.net/q806zeps/17/

Thank you.

I think the problem is here because if I comment the render, isit's ok.

<TimerInput value={this.state.seconds} handleChange={this.handleChange} /> <Minuteur seconds={600} libelle="Pâtes"/>

<TimerInput 
    value={this.state.seconds} 
    handleChange={this.handleChange} 
/> 
<Minuteur 
    seconds={600} 
    libelle="Pâtes"
/>```

I try to do a timer in React but I have a problem, I have this problem Uncaught TypeError: Cannot read property 'seconds' of undefined'.

I try to understand but I can't find the problem.

Can someone help me ?

Here is the fiddle :

Thank you.

https://jsfiddle.net/q806zeps/17/

I think the problem is here because if I comment the render, is ok

<TimerInput value={this.state.seconds} handleChange={this.handleChange} /> <Minuteur seconds={600} libelle="Pâtes"/>

I'm trying to make a timer in React but, I have a problem. The error that I am getting is this:

Uncaught TypeError: Cannot read property 'seconds' of undefined'.

I have tried to understand but, I can't find the problem.

Can someone help me ?

Here is the fiddle :  https://jsfiddle.net/q806zeps/17/

Thank you.

I think the problem is here because if I comment the render, it's ok.

<TimerInput 
    value={this.state.seconds} 
    handleChange={this.handleChange} 
/> 
<Minuteur 
    seconds={600} 
    libelle="Pâtes"
/>```
deleted 228 characters in body
Source Link
Tube Yu
  • 21
  • 1
  • 6

I try to do a timer in React but I have a problem, I have this problem Uncaught TypeError: Cannot read property 'seconds' of undefined'.

I try to understand but I can't find the problem.

Can someone help me ?

Here is the fiddle :

Thank you.

https://jsfiddle.net/q806zeps/17/

I think the problem is here because if I comment the render, is ok

<TimerInput value={this.state.seconds} handleChange={this.handleChange} /> <Minuteur seconds={600} libelle="Pâtes"/>

EDIT : I try to fix this in this fiddle https://jsfiddle.net/q806zeps/20/ by set but I want to use the seconds enter in the input and not 600s...

I try to do a timer in React but I have a problem, I have this problem Uncaught TypeError: Cannot read property 'seconds' of undefined'.

I try to understand but I can't find the problem.

Can someone help me ?

Here is the fiddle :

Thank you.

https://jsfiddle.net/q806zeps/17/

I think the problem is here because if I comment the render, is ok

<TimerInput value={this.state.seconds} handleChange={this.handleChange} /> <Minuteur seconds={600} libelle="Pâtes"/>

EDIT : I try to fix this in this fiddle https://jsfiddle.net/q806zeps/20/ by set but I want to use the seconds enter in the input and not 600s...

I try to do a timer in React but I have a problem, I have this problem Uncaught TypeError: Cannot read property 'seconds' of undefined'.

I try to understand but I can't find the problem.

Can someone help me ?

Here is the fiddle :

Thank you.

https://jsfiddle.net/q806zeps/17/

I think the problem is here because if I comment the render, is ok

<TimerInput value={this.state.seconds} handleChange={this.handleChange} /> <Minuteur seconds={600} libelle="Pâtes"/>

deleted 33 characters in body
Source Link
Tube Yu
  • 21
  • 1
  • 6

I try to do a timer in React but I have a problem, I have this problem Uncaught TypeError: Cannot read property 'seconds' of undefined'.

I try to understand but I can't find the problem.

Can someone help me ?

Here is the fiddle :

Thank you.

https://jsfiddle.net/q806zeps/17/

I think the problem is here because if I comment the render, is ok

<TimerInput value={this.state.seconds} handleChange={this.handleChange} /> <Minuteur seconds={600} libelle="Pâtes"/>

EDIT : I try to fix this in this fiddle https://jsfiddle.net/q806zeps/19/https://jsfiddle.net/q806zeps/20/ by set in Minuteur component and now in App but I want to use the seconds enter in the input and not 600s...

I try to do a timer in React but I have a problem, I have this problem Uncaught TypeError: Cannot read property 'seconds' of undefined'.

I try to understand but I can't find the problem.

Can someone help me ?

Here is the fiddle :

Thank you.

https://jsfiddle.net/q806zeps/17/

I think the problem is here because if I comment the render, is ok

<TimerInput value={this.state.seconds} handleChange={this.handleChange} /> <Minuteur seconds={600} libelle="Pâtes"/>

EDIT : I try to fix this in this fiddle https://jsfiddle.net/q806zeps/19/ by set in Minuteur component and now in App I want to use the seconds enter in the input and not 600s...

I try to do a timer in React but I have a problem, I have this problem Uncaught TypeError: Cannot read property 'seconds' of undefined'.

I try to understand but I can't find the problem.

Can someone help me ?

Here is the fiddle :

Thank you.

https://jsfiddle.net/q806zeps/17/

I think the problem is here because if I comment the render, is ok

<TimerInput value={this.state.seconds} handleChange={this.handleChange} /> <Minuteur seconds={600} libelle="Pâtes"/>

EDIT : I try to fix this in this fiddle https://jsfiddle.net/q806zeps/20/ by set but I want to use the seconds enter in the input and not 600s...

added 259 characters in body
Source Link
Tube Yu
  • 21
  • 1
  • 6
Loading
Source Link
Tube Yu
  • 21
  • 1
  • 6
Loading