0

how to solve the problem, any idea form anyone?

enter image description here

enter image description here

enter image description here

enter image description here

SMAKSS
  • 9,606
  • 3
  • 19
  • 34
aravindan
  • 3
  • 4

3 Answers3

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
0

Please replace

import React, { useState } from 'react';
Jay
  • 2,826
  • 2
  • 13
  • 28