how to solve the problem, any idea form anyone?
Asked
Active
Viewed 483 times
0
-
1It is import React, {useState} from 'react'. – tksilicon Apr 16 '20 at 06:02
3 Answers
1
import React, { useState } from 'react';
That's the correct way. Your 'from' is not correct.

tksilicon
- 3,276
- 3
- 24
- 36
1
The problem lies in the import React, from { useState } 'react'
.
There is a typo here, since you are using useState
you should import it like this:
import React, { useState } from 'react';

SMAKSS
- 9,606
- 3
- 19
- 34