R
R
Ruslan Absalyamov2018-02-23 20:37:47
React
Ruslan Absalyamov, 2018-02-23 20:37:47

How to make division by blocks in a class?

I wanted to simplify the code, but for some reason I'm not so good at
https://codepen.io/rusline/pen/NyBYVY?editors=0011
I'm just new to react and I don't understand this element

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-02-23
@rusline18

function Date(props){
  let date = new Date;
  ...

Do you even understand what's going on here? Defined a Date function, and then expect the built-in Date constructor to be available as before? - and nothing like that. Your Date will recursively poke itself until the call stack ends. Rename your Date.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question