Travis Bernard (@TravBern) profile picture

Solutions Architect | Accepting new Clients

Austin, TX
Joined January 2018
Photo by Travis Bernard (@TravBern)Photo by Travis Bernard (@TravBern)Photo by Travis Bernard (@TravBern)Photo by Travis Bernard (@TravBern)Photo by Travis Bernard (@TravBern)Photo by Travis Bernard (@TravBern)Photo by Travis Bernard (@TravBern)Photo by Travis Bernard (@TravBern)Photo by Travis Bernard (@TravBern)Photo by Travis Bernard (@TravBern)
Signed into an AWS console for the first time in over a year. What a nostalgic trip that was - at least for the first 5 minutes.
2
95
Lance Stroll's car for the #f1 #MiamiGP
1
203
Anyone know a #VSCODE refactoring tool for extracting a chunk of #REACT #JSX into it's own FC? <div> {leave me alone} <div id="extractme"> {I'm with them ^} </div> </div> Internet is suggesting glean but that project's been broke and dead for a while now.
1
3
223
I think these years of layoffs, job automation, and the tightening of investment should be referred to as "The Techoning"
1
90
Today I realized I could deref the first element of a nested array as `const { rows: [record] } = object`. And I kind of love and hate it at the same time. Help me decide... A, B or C??
1
116
Just wrote this little nugget of future tech debt that I'm not proud of. Then again it was a 1 line fix to a minor problem...
1
2
125
Been a pretty hard core follower of MySQL my whole career. Lately done a bit of mongo. Recently, just to learn, cracked open Postgres on a personal project and woah… shoulda looked into it sooner
2
1
232
Is #TypeScript broken on #React ForwardRef? I'm using this: export const JobCard = forwardRef((ref: ForwardedRef<HTMLElement>) => { return <div ref={ref} /> } And I'm getting errors around mismatch between HTMLDivElement and HTMLElement. 🧵1/2
1
3
118
IMO forwardRef should be able to use the lower-specificity type. It's saying, hey, I just need the element to match at least this API. So why is the DIV complaining that .align isn't supported, I'm specifically saying I don't care about align. This makes ref types viral...
1
58
Follow up. I'm currently solving my problem this way... doesn't seem ideal. forwardRef((ref: ForwardedRef<HTMLElement>) => { const divRef = useRef<HTMLDivElement>(null); useImperativeHandle(ref, () => divRef.current as HTMLElement); return <div ref={divRef} /> }
30
One of the best little utility libraries I've found in a long time. github.com/romac/react-if Makes conditional rendering so much nicer to read and reason about. Not sure I'll ever build another app without it
2
109
Unpopular opinion: this “just use a framework” mentality in #React is bad for the ecosystem. It promotes prototyping and throw-away software and is keeping the ecosystem from stabilizing for enterprise use.
48
When you join a company are you adding +1 to the workforce? or are you multiplying the workforce? If you can increase the capacity/skill/confidence of those around you, even in a small way, then your bringing way more value than just your own capacity.
1
6
193
Wrote a tool to mount any React component into a blank page, with whatever context you want, on the fly. Great for testing in isolation. Only dependency is webpack-dev-server - i.e. Storybook without the cruft or learning curve. Should I publish?
1
114
If you use @SlackHQ and you're NOT running windows Vista, then go to Settings > Accessibility > Window Transparency, and turn it off. You're welcome.
73
I can attest to the extraordinary amount of work this has taken to deliver. So cool to see it in the wild. 100% a game changer for ecomm and fulfillment.
Nice to see our first merchant going live with Enhanced Checkout for #Shopify 🎉 #ecommerce
1
5
291
Travis Bernard retweeted
Nice to see our first merchant going live with Enhanced Checkout for #Shopify 🎉 #ecommerce
4
1
7
682
It's time to do the thing I've been scared of and start up my Solutions Architecture firm. Any of my friends on here have experience freelancing? What are some resources you used to find and connect to clients?
1
5
424
parseFloat(undefined) returns NaN NaN !== NaN That's 3 hours of my life wasted
1
5
298
It's good to be back
1
3
235
Build baby build (team stat, not individual 😊)
157