I'm not asking what the three dots spread notation in React Javascript do I know what they do ok?
I learn ReactJs Javascript and read code and now I see this CodeSandbox
You see the code piece:
why in the code does the <Card>
need the ...rest
, it does not do anything with it or am I missing something?
What is the purpose to let the Card
have the spread notation. ...rest
? This happens on like 10 places in the code on all <Card>
objects please advice? It does not use the values contain in the spread notation or there are no values in the first place when all objects receiving the ...rest
is created.
Also the className
props is inserted into the <Card>
object but it's not used liks so: className={clsx(classes.root, className)}
, is that really needed?