I've found some
older Reddit threads (
<@U25PYL3Q8> also seemed on the fence about using React there) and there was the conversation here the other day about this, but I have a couple of custom theme builds coming up and I keep going back and forth.
I'd love to hear from others who have been developing on HubSpot for a while on what they're doing.
:reactjs: Should I build new custom themes in React or Classic HubL?Pros of React: I think my main reason for leaning towards React is that I get the vibe that HubSpot will start pushing it hard soon (maybe at Inbound?). In Design Tools under the "Getting Started" it's already got the "Recommended" flag. I don't want to build a brand new theme to have my client asking why it's not got the latest and greatest in a few months. Then again, I saw somewhere that
@Anton reckons it won't be replaced in the marketplace for a good while, so maybe not?
Personally I also like a lot of the new features, the components, the ability to reuse fields, some of the speedier "hydrating" stuff... etc.
Cons of React: it's less accessible (e.g. some of my clients are comfortable enough to go in and edit a bit of HTML/CSS, but wouldn't know how to find and update a React theme), there's not a lot of documentation on how React applies to HubSpot (I'd be cobbling it together based on Elevate) and then there's the fact that I'm new to React myself (I know, I'm late to the party). I've been messing around with it, but it will take me twice as long to build at first I think.
--
Based on that, I'm debating a hybrid approach, like the "migrated themes" documentation they have where it's a React project, but maybe I still use classic HubL modules for some of the more static modules.
Ugh, I'm so undecided
🥲