TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Look ma, no React: I recoded my portfolio site with vanilla everything

117 pointsby marjipan200almost 2 years ago

28 comments

carlossouzaalmost 2 years ago
&gt; I became a dev when everyone was hiring for React, so React is what I taught myself immediately after <i>bootcamp</i> in the scramble for a job<p>A better education path (in a bootcamp, university, book, youtube, whatever) would start with the fundamentals and build it from the ground up... not the other way around.<p>(I just realized how lucky I am for being taught in the best possible order, from the ground up... first the basics... and how so many people didn&#x27;t have this opportunity)
评论 #36739847 未加载
评论 #36737717 未加载
评论 #36736999 未加载
评论 #36737657 未加载
评论 #36737862 未加载
评论 #36737029 未加载
评论 #36737977 未加载
评论 #36738827 未加载
评论 #36737406 未加载
评论 #36740519 未加载
评论 #36745691 未加载
评论 #36742006 未加载
zeroonetwothreealmost 2 years ago
Yes you don’t need React for a static site. Is this news at this point?<p>Also I find the colour scheme hard to read but maybe it’s just me.
评论 #36736942 未加载
评论 #36738676 未加载
评论 #36737045 未加载
评论 #36737394 未加载
评论 #36737532 未加载
评论 #36736870 未加载
evandalealmost 2 years ago
I&#x27;ve tried learning Ember, React, and Vue and have tapped out pretty early. Now I&#x27;m learning how to build a site using only vanilla JS and doing everything from scratch unless I find a reason to switch it. I think I&#x27;m making decent progress.<p>I even wrote my own simple test framework that shoves the results on the bottom of a page. After adding a few features I decided to switch it to Jasmine.<p>One thing I&#x27;m noticing is how often you need npm which I find very annoying. How is a JS library or framework anything more than a single JS file that you have to include in your page? Why is everything npm this and yarn that? Jasmine has standalone install instructions that are easy to find but I can&#x27;t say the same about Jest.
评论 #36739589 未加载
评论 #36739566 未加载
评论 #36738394 未加载
JohnFenalmost 2 years ago
I think this is a pretty awesome statement. I&#x27;m always unreasonably pleased when I see a web page that embraces appropriate simplicity.<p>&gt; Coding a basic vanilla multi-page application (MPA) saves time in development (goodbye babel&#x2F;postcss&#x2F;SSR config) and builds are fast (this site builds in less than 1.2 seconds).<p>I&#x27;d hope that builds would be on the order of a small pile of milliseconds! (or zero: a site like that could just be handcoded, really).<p>&gt; I&#x27;m only using these 2 lines of Javascript to add the current year in the footer copyright tag<p>This could also be eliminated. At least in the US, there is no legal reason to add a copyright notice at all, and you certainly don&#x27;t have to add a year. Those requirements were removed years ago.<p>But, if all you want is the year, why not do that server-side? Or bake it into the html and set up a bit of automation to replace the year with a new one every Jan 1.
评论 #36740782 未加载
评论 #36739654 未加载
评论 #36737030 未加载
willsmith72almost 2 years ago
I don&#x27;t get the value prop of all vanilla. The overhead involved in building a react app is nearly nil with all the tooling we have. Sure CRA was slow, but vite makes things sub-second again.<p>It&#x27;s like when remix people talk about progressive enhancement to me. Sure, cool, you can do things differently. But why? If you already know the ins and outs of a framework or tool and are productive with it, use it. I&#x27;m never gonna hire someone because of how much they &quot;flexed&quot; with their vanilla site, just like I won&#x27;t hire someone who flexed with their cool fresh-from-bootcamp react animations.
评论 #36737329 未加载
评论 #36737193 未加载
bdcravensalmost 2 years ago
Many of the comments suggest that of course you wouldn&#x27;t use React for a blog.<p>Someone forgot to tell these folks:<p><a href="https:&#x2F;&#x2F;buttercms.com&#x2F;blog&#x2F;how-to-create-a-blog-with-react&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;buttercms.com&#x2F;blog&#x2F;how-to-create-a-blog-with-react&#x2F;</a><p><a href="https:&#x2F;&#x2F;www.sanity.io&#x2F;guides&#x2F;build-your-first-blog-using-react" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.sanity.io&#x2F;guides&#x2F;build-your-first-blog-using-rea...</a><p>(and many more)<p>I&#x27;m firmly in the camp that React and similar frameworks are overused. However, the point is that there&#x27;s a large part of our industry that is bought-in (and in many cases, built businesses around) the concept of &quot;React all the things&quot; and it&#x27;s encouraging to see push back.
city41almost 2 years ago
My website is also completely static, but made with React. That means no React at all at runtime, it is completely static. React does not automatically mean dynamic. I get all the benefits of both. I love the flexibility nextjs provides here.
评论 #36737028 未加载
评论 #36738729 未加载
评论 #36738072 未加载
password54321almost 2 years ago
Recently tried no framework, Jekyll, Next, Astro and finally SvelteKit. The only one I liked was SvelteKit.<p>Not interested in reinventing the wheel (no framework), dealing with lots of boilerplate and over-complication (Next&#x2F;React) or using multiple UI libraries (Astro). SvelteKit is a fine balance between simple and providing enough functionality that allows me to focus on generating content with minimal friction.
degunalmost 2 years ago
Jumping on the React hate train has become a trend these days, but it still has its place.
评论 #36737570 未加载
评论 #36737019 未加载
评论 #36737682 未加载
评论 #36737416 未加载
tjoffalmost 2 years ago
* [...] brought to you by vanilla everything. No Javascript frameworks, CSS libraries or flashy animations. [...] *<p>Proceeds with a distracting animated image of the old portfolio, thought that was funny.
评论 #36737037 未加载
awestrokealmost 2 years ago
React is a great tool for building complex, large applications. Your blog is not large or complex.
评论 #36737562 未加载
评论 #36736986 未加载
nailloalmost 2 years ago
The reason react was developed is mostly null at this point. Modern javascript is so fast and plesant it&#x27;s hard to imagine many real reasons you can&#x27;t stay entirely within vanilla.
评论 #36736970 未加载
评论 #36736954 未加载
评论 #36737103 未加载
madeofpalkalmost 2 years ago
Author made a two page static website without React. Okay? Congrats?
评论 #36738498 未加载
microflashalmost 2 years ago
I&#x27;m glad this works for them. Personal websites and portfolios are a reflection of people on their journey. If it is built with React, maybe they are learning React. If it is vanilla JS, maybe they appreciate the flavor of vanilla.<p>Instead of making sweeping statements about the choice of stack, I appreciate that someone took their time and built something of their own. Congrats. Next thing they should do is an accessibility audit and learn from it.
WesolyKubeczekalmost 2 years ago
Is it fashionable now to make a site like almost every site used to be in 2008 and wear it as a badge of honor?<p>P. S. Needs to be even more garish. Remember the &quot;space pigs&quot; theme of FastTracker II? Man, those were the days.
laurels-martsalmost 2 years ago
Why choose pug over EJS?<p>When I started my first Node&#x2F;Express project I picked pug too but quickly realized it was too removed from vanilla HTML I was seeing in the books&#x2F;MDN and switched to Handlebars. Immediately discovered that Handlebars didn’t have a built in support for something fairly basic I needed and I either had to roll my own extension to it or look for something else so I ended up switching yet again to EJS and I’m still using it a year later today. EJS is perfect if you want vanilla HTML + vanilla JS.
imiricalmost 2 years ago
&gt; A developer needs a website to prove they can build a website.<p>Not really. Doesn&#x27;t your experience, reflected in your CV and the technical interview, already prove that? A portfolio site is nice to have, particularly if you&#x27;re a designer and want to showcase your work, but it shouldn&#x27;t be a requirement for a developer, frontend or otherwise.
dodslaseralmost 2 years ago
I have a nitpick re: the centrifuge example<p>While the paperfuge is cool and may even reach higher RPM&#x2F;G than some bench top ultracentrifuges, it cannot do so consistently.<p>Putting &quot;Samples were centrifuged at whatever amount of G:s yours truly could crank out on a hand built paperfuge for a solid 10 minutes&quot; in the materials and methods section doesn&#x27;t exactly scream reproducible science.
aczerepinskialmost 2 years ago
I built my simple site with just Go, no libraries of any kind. Two years later it is such a dream to never ever have any dependency chores to do.<p>Before that I had a Phoenix site and I feel like every time I touched it (months apart) I had to update something.<p>Not such a big deal at work where monitoring for security vulnerabilities and updating dependencies is paid work that we make time for but I hate that kind of busy work on my own time.
eimrinealmost 2 years ago
Can I write a React app and recompile it as a vanilla? For example to take all involved parts of the library and not take the rest.
评论 #36736966 未加载
评论 #36736984 未加载
评论 #36737338 未加载
评论 #36737345 未加载
Alifatiskalmost 2 years ago
It&#x27;s a portfolio, is js really necessary?
评论 #36738574 未加载
codampa01314almost 2 years ago
&gt; My portfolio needs to be nothing more than the HTTP equivalent of a tri-fold brochure.<p>My concern here is that your website _is_ your portfolio - including how you build it. It&#x27;s not just the content and long narrative that&#x27;s going to sell you. This new approach has switched from showing what you can do to telling what you can do.
ofrzetaalmost 2 years ago
About that Paperfuge analogy ... maybe I am stupid or overly skeptic but I haven&#x27;t seen that paper wheel carry any samples in the video. If there was some solution to mount samples (symmetrically I&#x27;d guess) it would become quite dangerous to rotate them 120.000 rpm without any enclosure, right?
评论 #36745700 未加载
PhilipRomanalmost 2 years ago
Unrelated note, but I had never heard of the paperfuge, thanks for teaching me something new!
dieselgatealmost 2 years ago
I like using react from a cdn and rolling it out when needed - kind of the best out both world
antigonemerlinalmost 2 years ago
A company I used to work for used react to build the app, and Wix for the site.
revskillalmost 2 years ago
No, React with webpack&#x2F;vite is simpler than &quot;your handcrafted static site generator&quot;.<p>I don&#x27;t have to use any of Hugo, Jelkyll,..., because i can cook my own SSG toolkit right inside React.
skeptrunealmost 2 years ago
Pug is the most disgusting piece of sh* to ever exist.