scrimba
JS Deep Dive
Hacker News
Hacker News - Requesting Data from API Endpoint
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

To see this lesson you need to be logged in. Joining Scrimba is free and gives you access to 20+ courses.Sign up
Hacker News - Requesting Data from API Endpoint
AboutCommentsNotes
Hacker News - Requesting Data from API Endpoint
Expand for more info
pages
stories.js
run
preview
console
import view from '../utils/view.js';

export default function Stories(path) {
view.innerHTML = `<div>${path}</div>`;
}
Console
{root:
"https://c9026dc3b.scrimba.com/index.html"
, _routes:
[]
, _useHash:
true
, _hash:
"#"
, _paused:
false
, _destroyed:
false
, _lastRouteResolved:
null
, _notFoundHandler:
null
, _defaultHandler:
null
, _usePushState:
false
, _onLocationChange:
ƒ()
, _genericHooks:
null
, _historyAPIUpdateMethod:
"pushState"
}
,
/index.html
-11:03