Spotify backend server
This commit is contained in:
parent
e8d0a25fc9
commit
3802bce17d
6 changed files with 220 additions and 14 deletions
21
src/views/ArtistSearch.jsx
Normal file
21
src/views/ArtistSearch.jsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
import React, { useState, useEffect } from 'react'
|
||||
|
||||
function ArtistSearch() {
|
||||
let [token, setToken] = useState(null)
|
||||
|
||||
useEffect(() => {
|
||||
const search = window.location.search
|
||||
const params = new URLSearchParams(search)
|
||||
setToken(params.get('access_token'))
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="artist-search">
|
||||
<h1>Artist search</h1>
|
||||
|
||||
<p>{token}</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default ArtistSearch
|
Loading…
Add table
Add a link
Reference in a new issue