shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

269
active users

#jsx

1 post1 participant0 posts today
Jacket<p>I have so much mixed feeling about <a href="https://tech.lgbt/tags/react" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>react</span></a>. In one hand, I like <a href="https://tech.lgbt/tags/jsx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsx</span></a>. I mean, I really don't like <a href="https://tech.lgbt/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> but I like the idea to integrate <a href="https://tech.lgbt/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> and <a href="https://tech.lgbt/tags/css" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>css</span></a> so they can be syntax checked instead of a big hard to read string. On the other hand your site is now coming with scripts even if it's just a simple form that could be coded in plane HTML. I learned react to help getting jobs but if it was my own website, I would use something else. I started to check <a href="https://tech.lgbt/tags/flutter" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>flutter</span></a>. I like the idea of having one code that can generate websites, desktop apps and phone apps.</p>
xoron :verified:<p>React-like functional webcomponents, but with vanilla HTML, JS and CSS</p><p>Introducing Dim – a new <a href="https://infosec.exchange/tags/Framework" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Framework</span></a> that brings <a href="https://infosec.exchange/tags/ReactJS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ReactJS</span></a>-like functional <a href="https://infosec.exchange/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a>-syntax with <a href="https://infosec.exchange/tags/VanillaJS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VanillaJS</span></a>. Check it out here:<br>🔗 Project: <a href="https://github.com/positive-intentions/dim" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/positive-intentions</span><span class="invisible">/dim</span></a><br>🔗 Website: <a href="https://dim.positive-intentions.com" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">dim.positive-intentions.com</span><span class="invisible"></span></a></p><p>My journey with <a href="https://infosec.exchange/tags/WebComponents" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebComponents</span></a> started with Lit, and while I appreciated its native browser support (less <a href="https://infosec.exchange/tags/Tooling" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Tooling</span></a>!), coming from <a href="https://infosec.exchange/tags/ReactJS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ReactJS</span></a>, the class components felt like a step backward. The <a href="https://infosec.exchange/tags/FunctionalProgramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FunctionalProgramming</span></a> approach in React significantly improved my <a href="https://infosec.exchange/tags/DeveloperExperience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DeveloperExperience</span></a> and debugging flow.</p><p>So, I set out to build a thin, functional wrapper around <a href="https://infosec.exchange/tags/Lit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lit</span></a>, and Dim is the result! It's a <a href="https://infosec.exchange/tags/ProofOfConcept" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ProofOfConcept</span></a> right now, with "main" <a href="https://infosec.exchange/tags/Hooks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hooks</span></a> similar to React, plus some custom ones like useStore for <a href="https://infosec.exchange/tags/EncryptionAtRest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EncryptionAtRest</span></a>. (Note: <a href="https://infosec.exchange/tags/StateManagement" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StateManagement</span></a> for encryption-at-rest is still unstable and currently uses a hardcoded password while I explore <a href="https://infosec.exchange/tags/Passwordless" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Passwordless</span></a> options like <a href="https://infosec.exchange/tags/WebAuthn" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebAuthn</span></a>/#Passkeys).</p><p>You can dive deeper into the <a href="https://infosec.exchange/tags/Documentation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Documentation</span></a> and see how it works here:<br>📚 Dim Docs: <a href="https://positive-intentions.com/docs/category/dim" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">positive-intentions.com/docs/c</span><span class="invisible">ategory/dim</span></a></p><p>This <a href="https://infosec.exchange/tags/OpenSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSource</span></a> project is still in its early stages and very <a href="https://infosec.exchange/tags/Unstable" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Unstable</span></a>, so expect <a href="https://infosec.exchange/tags/BreakingChanges" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BreakingChanges</span></a>. I've already received valuable <a href="https://infosec.exchange/tags/Feedback" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Feedback</span></a> on some functions regarding <a href="https://infosec.exchange/tags/Security" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Security</span></a>, and I'm actively investigating those. I'm genuinely open to all feedback as I continue to develop it!</p><p><a href="https://infosec.exchange/tags/FrontendDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FrontendDev</span></a> <a href="https://infosec.exchange/tags/JSFramework" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSFramework</span></a> <a href="https://infosec.exchange/tags/Innovation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Innovation</span></a> <a href="https://infosec.exchange/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a> <a href="https://infosec.exchange/tags/Programmer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programmer</span></a> <a href="https://infosec.exchange/tags/Tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Tech</span></a></p>
Evan<p>🤞 Hopeful that I can get on the <a href="https://raphus.social/tags/jsx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsx</span></a> flights tomorrow as a <a href="https://raphus.social/tags/standby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>standby</span></a> <a href="https://raphus.social/tags/nonrevlife" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nonrevlife</span></a></p>
GENKI<p>ここ数日 <a href="https://social.vivaldi.net/tags/NextJS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NextJS</span></a> 触って、いろいろなるほどとは思ってるけどやっぱり Image コンポーネントとかを使うの、確かに便利ではあるけどなんか車輪の再発明感があるというか余計に重いコンポーネント集の上に乗っけられてる感みたいなのはあるんだよな…<br><a href="https://social.vivaldi.net/tags/React" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>React</span></a> も <a href="https://social.vivaldi.net/tags/SVG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SVG</span></a> そのまま貼れないの不満だったけど最近はフォーマッターとかがいい感じに <a href="https://social.vivaldi.net/tags/SVG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SVG</span></a> を <a href="https://social.vivaldi.net/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a> に変えてくれるっぽくて、まあそれはそれで便利で助かってはいるのだけど、なんかもやもやはする…</p>
GENKI<p>この <a href="https://social.vivaldi.net/tags/Figma" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Figma</span></a> プラグイン、便利そうだなと思いつつ、よく考えると <a href="https://social.vivaldi.net/tags/React" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>React</span></a> で <a href="https://social.vivaldi.net/tags/SVG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SVG</span></a> 使うのって <a href="https://social.vivaldi.net/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a> に合わせて属性値をキャメルケースにしなくちゃいけないし、デザインツールから書き出した <a href="https://social.vivaldi.net/tags/SVG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SVG</span></a> のコードをそのまま使えないせいでこういうプラグインとかコンバーターみたいなものが必要なだけで、<a href="https://social.vivaldi.net/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> は <a href="https://social.vivaldi.net/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a>、<a href="https://social.vivaldi.net/tags/SVG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SVG</span></a> は <a href="https://social.vivaldi.net/tags/SVG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SVG</span></a> として書けない <a href="https://social.vivaldi.net/tags/React" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>React</span></a> にそもそも問題がある気がしてしまうんだよな…</p><p><a href="https://social.vivaldi.net/tags/PHP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHP</span></a> とか <a href="https://social.vivaldi.net/tags/RiotJS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RiotJS</span></a> なら、テンプレートに <a href="https://social.vivaldi.net/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> も <a href="https://social.vivaldi.net/tags/SVG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SVG</span></a> もそのまま書けるからデザインツールがはきだす <a href="https://social.vivaldi.net/tags/SVG" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SVG</span></a> をそのまま持ってこられるし、そこにロジックを仕込みたいところがあればそのまますぐ編集できるのになーという気持ちが拭えないでいる :tony_normal: </p><p><a href="https://www.figma.com/community/plugin/1348045528828166727/svg-to-code-react-component" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">figma.com/community/plugin/134</span><span class="invisible">8045528828166727/svg-to-code-react-component</span></a></p>
𝕂𝚞𝚋𝚒𝚔ℙ𝚒𝚡𝚎𝚕<p>I don't know at the moment whether I should technically replace <a href="https://chaos.social/tags/Markdown" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Markdown</span></a> with <a href="https://chaos.social/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a> or <a href="https://chaos.social/tags/HTM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTM</span></a> for future <a href="https://chaos.social/tags/dev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dev</span></a>'eloped <a href="https://chaos.social/tags/web" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>web</span></a> pages. I believe that the <a href="https://chaos.social/tags/md" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>md</span></a> content of the page should be generated on the <a href="https://chaos.social/tags/server" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>server</span></a> as much as possible.<br>How do you think about it?</p><p>🌐 JSX vs HTM<br><a href="https://mtsknn.fi/blog/jsx-vs-htm-hyperscript-tagged-markup/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">mtsknn.fi/blog/jsx-vs-htm-hype</span><span class="invisible">rscript-tagged-markup/</span></a></p>
Evert Pot<p>So many mixed feelings about <a href="https://indieweb.social/tags/React" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>React</span></a> and SPAs, but <a href="https://indieweb.social/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a> is amazing.</p><p>I'm currently working on a web application that's a classic, multi-page, server-rendered app using a standard Javascript microframework.</p><p>There's no reason to ever go back to handlebars or ejs. Just use a single-pass JSX template and call 'renderToString'. Everything is syntax instead of strings, you get typing and XSS protection is a pretty hard opt-out.</p>
Doug Parker 🕸️<p>Playing a bit with <a href="https://techhub.social/tags/Preact" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Preact</span></a> / <a href="https://techhub.social/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a> today and am feeling the pain of not having host elements. I've realized that because a "component" is really just a <a href="https://techhub.social/tags/VDOM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VDOM</span></a> template, there is no implicit contract around what it actually rendered.</p><p>As an arbitrary example, what if I want to set a style on a `&lt;Foo /&gt;` component? What selector should I use for that style? I have no idea what `&lt;Foo /&gt;` will actually generate, or even how many top-level elements it will output. The `Foo` component _must_ expose some kind of `className` or other API to provide this behavior, it's not implicit at all.</p><p>Maybe this is good because it provides stronger encapsulation. But it can also lead to bugs. If I render `&lt;Header /&gt;` a `header` CSS selector is _probably_ right. But what if `&lt;Header /&gt;` actually renders:</p><p>&lt;div&gt;<br> &lt;header&gt;...&lt;/header&gt;<br>&lt;/div&gt;</p><p>Then a `header` selector isn't actually the top-level element and my style could easily be wrong.</p><p>Just some idle thoughts about the lack of host elements.</p>
Komish<p><span class="h-card"><a href="https://mastodon.social/@developit" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>developit</span></a></span> so I’ve got a mix of <a href="https://hachyderm.io/tags/jsx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsx</span></a> and <a href="https://hachyderm.io/tags/htm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>htm</span></a> going in this project so I can get a feel for the differences. </p><p>For whatever reason, I can’t get the document formatting in vscode to get this even remotely close to look like it’s properly indented. Also missing Emmett completions (not sure if I would have that with jsx yet) and tag autoclosing. </p><p>Can’t tell if I’m missing something or my lit-html extension is misconfigured.</p><p>Otherwise it’s going great! <a href="https://hachyderm.io/tags/preact" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>preact</span></a> <a href="https://hachyderm.io/tags/preactjs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>preactjs</span></a> <a href="https://hachyderm.io/tags/js" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>js</span></a> <a href="https://hachyderm.io/tags/webdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>webdev</span></a></p>
Doug Parker 🕸️<p><span class="h-card"><a href="https://mastodon.social/@developit" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>developit</span></a></span> Could the error handling be done in some kind of dev mode? I know <a href="https://techhub.social/tags/Angular" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Angular</span></a> and <a href="https://techhub.social/tags/Lit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lit</span></a> both have the concept of "dev mode" for additional validation.</p><p>Personally I like the strict <a href="https://techhub.social/tags/XML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>XML</span></a> approach, I just didn't realize <a href="https://techhub.social/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a> was that strict (it's a new experience for me), and figuring that out took a solid 45 minutes of debugging which an error message would have cut down to 1.</p>
Doug Parker 🕸️<p>Apparently <a href="https://techhub.social/tags/Preact" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Preact</span></a> (or <a href="https://techhub.social/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a> / <a href="https://techhub.social/tags/VDom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VDom</span></a>) cannot directly render comments: <a href="https://github.com/preactjs/preact/issues/1469#issuecomment-477510098" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/preactjs/preact/iss</span><span class="invisible">ues/1469#issuecomment-477510098</span></a></p><p>I get why that's not super useful in a client-side context, but particularly for server-side rendering use cases I would expect to be able to render comments. I would expect to be able to render any arbitrary DOM structure, but I guess that's not possible out of the box?</p><p>Not sure if there any workarounds to render comments in Preact. I'm not immediately able to find anything, might be a challenge to work around.</p>
Doug Parker 🕸️<p>I just started playing around with <a href="https://techhub.social/tags/Preact" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Preact</span></a> <a href="https://techhub.social/tags/SSR" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SSR</span></a> with <a href="https://techhub.social/tags/htm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>htm</span></a> and the first thing I did was render the classic:</p><p>```<br>render(html`<br> &lt;!DOCTYPE html&gt;<br> &lt;html&gt;<br> &lt;head&gt;<br> &lt;title&gt;Preact&lt;/title&gt;<br> &lt;meta charset="utf8"&gt;<br> &lt;/head&gt;<br> &lt;body&gt;<br> &lt;h2&gt;Hello, World!&lt;/h2&gt;<br> &lt;/body&gt;<br> &lt;/html&gt;<br>`)<br>```</p><p>And this intuitively output:</p><p>```<br>html<br>&lt;head&gt;<br> &lt;title&gt;Preact&lt;/title&gt;<br> &lt;meta charset="utf8" &gt;<br> &lt;body&gt;<br> &lt;h2&gt;Hello, World!&lt;/h2&gt;<br> &lt;/body&gt;<br>&lt;/head&gt;<br>```</p><p>Lolwat?<br>* `&lt;!DOCTYPE html&gt;` is gone.<br>* `&lt;html&gt;` turned into `html` and lost its close tag.<br>* `&lt;body&gt;` got moved inside `&lt;head&gt;`.</p><p><a href="https://techhub.social/tags/WTF" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WTF</span></a></p><p>Apparently you can't output a doctype at all (<a href="https://github.com/preactjs/preact-render-to-string/issues/201" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/preactjs/preact-ren</span><span class="invisible">der-to-string/issues/201</span></a>) and the `&lt;meta&gt;` tag is not self-closing in <a href="https://techhub.social/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a>.</p><p>I'm willing to accept those constraints, but this is an utter failure of DX IMHO. If my template is wrong, TELL ME! Don't just generate what's effectively garbage for seemingly no reason. There's no obviously logical path from "bad output" to "the mistake in my code". Error messages, please!</p>
Xe :verified:<p>The GraphicalEmoji hack</p><p><a href="https://xeiaso.net/blog/GraphicalEmoji" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">xeiaso.net/blog/GraphicalEmoji</span><span class="invisible"></span></a></p><p><a href="https://pony.social/tags/cursed" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cursed</span></a> <a href="https://pony.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <a href="https://pony.social/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a> <a href="https://pony.social/tags/fontRendering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fontRendering</span></a> <a href="https://pony.social/tags/dearGodHelpMe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dearGodHelpMe</span></a></p>
Rob Pegoraro<p>And why am I in Dallas on this spring-like morning? To try out the <a href="https://journa.host/tags/Starlink" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Starlink</span></a> inflight WiFi on a <a href="https://journa.host/tags/JSX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSX</span></a> regional jet--that carrier is hosting a media day at its DAL facility to show off the service. (JSX covered flights and lodging for me and other out-of-town journalists.)</p>