score:1

you need to import link from react-router-dom, you can check the example here. also there's no need to use parenthesis, you can simply do: <link to="/react">react</link>.

score:8

link is now part of the react-router-dom package. so you should change your import to:

import { link } from 'react-router-dom';

Related Query

More Query from same tag