Why do not work touch event in safari, with reactjs

Viewed 14

My code is here

import {Link} from "react-router-dom";   
...
<div className='home_m mainCompo mainDiv'>
    <div className='slogan'>쾌적한 일상에<br/>도움이 되어 드립니다</div>
        ...
           <Link to="/booking"><BookBtn text={"예약하기"}/></Link>
    </div>
</div>

I want to move "/booking" when clicked BookBtn component. It works well in Chrome and Samsung Internet, but Safari does not worked.

I tried HashRouter, it doesn't works. And in index.js

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

ReactDOM.render(
  <BrowserRouter>
    <App />
  </BrowserRouter>,
  document.getElementById('root')
);

like this. I removed strictedmode. But it doesn't work too. I think it is related with touch problem. Because, When rarely touch worked, Link tag worked smoothly.

I want to know how it work smmothly.

0 Answers
Related