title: How to replace any library from reactjs with preactjs library
body: <p>I am trying to use <code>react-swipeable-views</code> library in a preactjs app. It throws an error that <code>react/lib/shallowCompare</code> is not found. 
  How to replace a reactjs dependent library to a preactjs library in general?</p>