Twitter | Pretraživanje | |
Guillermo Rauch
We are *very* far away from what a smart compiler can do when pre-rendering and server-rendering. A Next.js page like so: export default () => <p>hi</hi> should yield `<!doctype html><p>hi</p>` and not a single extra byte If you are interested in this type of challenge DM me!
Reply Retweet Označi sa "sviđa mi se" More
Kevin Marks 16. ruj 2018.
Odgovor korisniku/ci @rauchg @dalmaer
Why the </p>?
Reply Retweet Označi sa "sviđa mi se"
Guillermo Rauch 16. ruj 2018.
Odgovor korisniku/ci @kevinmarks @dalmaer
🤯 Forgot about the html5 rules about that. Great observation!
Reply Retweet Označi sa "sviđa mi se"
Guillermo Rauch 16. ruj 2018.
Odgovor korisniku/ci @_ryancole
Because the idea is to smartly support the full spectrum of static and dynamic components, including only the portions of the runtime that are necessary. The example above underlines that no runtime is included when nothing is dynamic
Reply Retweet Označi sa "sviđa mi se"
Eli White 16. ruj 2018.
Odgovor korisniku/ci @rauchg
Sounds like Prepack!
Reply Retweet Označi sa "sviđa mi se"
Guillermo Rauch 16. ruj 2018.
Odgovor korisniku/ci @Eli_White
Hopefully it is exactly prepack :)
Reply Retweet Označi sa "sviđa mi se"
Guillermo Rauch 16. ruj 2018.
Odgovor korisniku/ci @jimbrayton
lol
Reply Retweet Označi sa "sviđa mi se"
Truong Hoang Dung 16. ruj 2018.
Odgovor korisniku/ci @rauchg
Why not turning from <p>hi</p> into a js file: export default () => <p>hi</hi> ;)
Reply Retweet Označi sa "sviđa mi se"
Guillermo Rauch 16. ruj 2018.
Odgovor korisniku/ci @revskill
need an edit button
Reply Retweet Označi sa "sviđa mi se"