A nearly-unstyled, hackable, ultra-modern, ultra-clean scaffold for rich, interactive storytelling, journalism and blogging. Fork this repo and get to work.
I use @sindresorhus/class-names liberally throughout my codebase, because it makes tailwind config strings managable. However it also introduces overhead in every render.
Mitigation:
[ ] replace direct calls to this library with calls to a wrapper function, say, @/sbstr8/lib/class-names, that provides memoization (via ramda?
[ ] does useMemo work in server components? A quick google did not find definitive answer -- someone claims that no hooks work, but this is obviously false (usehooks.com etc.). If useMemo() works in server components, this could be a decent implementation path
I use
@sindresorhus/class-names
liberally throughout my codebase, because it makes tailwind config strings managable. However it also introduces overhead in every render.Mitigation:
@/sbstr8/lib/class-names
, that provides memoization (via ramda?