Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete input field to lookup Subreddits #3

Open
kyletaylored opened this issue Jun 19, 2018 · 0 comments
Open

Autocomplete input field to lookup Subreddits #3

kyletaylored opened this issue Jun 19, 2018 · 0 comments

Comments

@kyletaylored
Copy link
Owner

Reddit has a public URL that will return a list of subreddits based on a keyword.

https://www.reddit.com/subreddits/search.json

There is some cleanup processing to get the actual data.

if (response.data.children) {
        let children = response.data.children.map(child => child.data)
        // console.log(children)
        return children
      }```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant