Ipfs-http-client Object(...) is not a funnction

I am not able to use create function in my react application.

import { create } from 'ipfs-http-client';
const client = create(); //This line gives error.
Type Error : Object(...) is not a  function.

Could you please read How to get useful answers to your questions - #2 and share more information on which version of the ipfs-http-client package you are running and what environment (browser, node.js, electron).