Jason Brown's Avatar

Jason Brown

@browniefed.bsky.social

React.js in Portland. Cider. I like real estate, and home improvement too

207 Followers  |  57 Following  |  10 Posts  |  Joined: 16.09.2024  |  1.6567

Latest posts by browniefed.bsky.social on Bluesky


Bouncing

15.03.2025 05:27 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Storybook Rsbuild Storybook builder and frameworks powered by Rsbuild.

storybook.rsbuild.dev

15.03.2025 05:23 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Just use rsbuild! It's incredible

13.03.2025 22:45 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Don't worry, we'll check back in every time you start your camera for any reason.

12.03.2025 15:36 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I'm around and would be down to help

16.02.2025 05:49 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Rsbuild The Rspack-based build tool

If you're looking to move away from create react app, check out rsbuild.dev

It's pretty incredible. Was honestly seamless with their guide.

16.02.2025 01:18 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image Typescript code snippet:

function setRefReact18(node) {
  // setRef is called when the element is attached and detached. When detaching,
  // the node is null. So if it's referenced elsewhere (eg: another element's
  // event handler), its value will be null if the element is not rendered.
  nodeRef.current = node;
}

function setRefReact19(node) {
  // setRef is called when the element is attached but *not* when it's detached.
  nodeRef.current = node;
  let mutationObserver = new MutationObserver(() => {/* ... */});
  mutationObserver.observe(node, { attributes: true });
  return () => {
    // If you add a cleanup function be sure to explicitly re-assign the ref
    // object to null during cleanup, or other references will point to the
    // ghost element that no longer exists.
    nodeRef.current = null;
    mutationObserver.disconnect();
  };
}

Typescript code snippet: function setRefReact18(node) { // setRef is called when the element is attached and detached. When detaching, // the node is null. So if it's referenced elsewhere (eg: another element's // event handler), its value will be null if the element is not rendered. nodeRef.current = node; } function setRefReact19(node) { // setRef is called when the element is attached but *not* when it's detached. nodeRef.current = node; let mutationObserver = new MutationObserver(() => {/* ... */}); mutationObserver.observe(node, { attributes: true }); return () => { // If you add a cleanup function be sure to explicitly re-assign the ref // object to null during cleanup, or other references will point to the // ghost element that no longer exists. nodeRef.current = null; mutationObserver.disconnect(); }; }

Important little nuance here about callback ref's cleanup function in React 19.

If you are assigning a ref object in a callback ref and you decide to add a cleanup function, make sure you re-assign the ref during cleanup.

12.12.2024 16:43 โ€” ๐Ÿ‘ 43    ๐Ÿ” 4    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Preview
ASIRI Designs Where Design Meets Building Science. Building science is the broader understanding of how architecture is intertwined with applied physics, engineering, chemistry, and health, in order to create durab...

Might just soft pivot my career after watching youtube.com/@asiridesigns

Always been interested in building design, construction and real estate.

Think it'd be fun to get into proper retrofits on old houses

18.11.2024 04:45 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
ASIRI Designs Where Design Meets Building Science. Building science is the broader understanding of how architecture is intertwined with applied physics, engineering, chemistry, and health, in order to create durab...

Nice, I just found this channel a few hours ago www.youtube.com/@ASIRIDesign...

Been probably the best, most informative on all options and trade offs for old building retrofits

18.11.2024 03:57 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

It's about stopping air leaks, for the most part 2" rigid foam + spray foam and you're golden

18.11.2024 03:28 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Don't forget to seal your rim joists

18.11.2024 03:08 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@browniefed is following 20 prominent accounts