I& #39;ll never forget when somebody asked me about their code that had React, Redux and Redux Saga to make 4 requests for data and then render a single page. Nothing interactive at all.
I suggested ditching all the JS with a quick node script to make the requests and write the html.
I suggested ditching all the JS with a quick node script to make the requests and write the html.
async function build() {
let a = await fetch(x)
let b = await fetch(y)
let html = `<html><div>${ http://a.foo"> http://a.foo }</div>...`
process.stdout.write(html)
}
build()
---
$ node build.js > index.html
let a = await fetch(x)
let b = await fetch(y)
let html = `<html><div>${ http://a.foo"> http://a.foo }</div>...`
process.stdout.write(html)
}
build()
---
$ node build.js > index.html
It& #39;s hard to understand why people reach for complex solutions for simple tasks. I started web dev when there was only html, so I grew up with it as it grew up.
Hammer drills are cool but a screwdriver is often better. Are bootcamps, online courses only teaching hammer drills?
Hammer drills are cool but a screwdriver is often better. Are bootcamps, online courses only teaching hammer drills?