Authenticate API of of last.fm in react js

I am a newbie in react. I went to last.fm api page and saw their documentation for authenticating the user using their client key. I am not sure how do we use react to authenticate the app. I am confused