How to add file to filecoin server using reactjs?

i know that we can use ipfs-http-client for this and it is convinient, but since the infura demands payment and credit card credentials for it, i am using file coin.
i tried to find the solution in docs, but was not successful.
Can somebody please guide me how can i replicate the ipfs.add() functionality using filecoin?

1 Like