<story><title>PSA: React 18 calls code twice in strict dev mode to detect side effects</title><url>https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects</url></story><parent_chain><item><author>joeyjojo</author><text>Outside of Vue, and maybe Angular, are there any other stable alternatives with a decent ecosystem? I&amp;#x27;d love to hop off the React train, but I haven&amp;#x27;t found anything that compares to the experience of just using create-react-app with Typescript support.</text></item><item><author>mhoad</author><text>Broadly speaking I think React is in a weird spot where they have painted themselves into a corner with no obvious way of fixing it by essentially forking the DOM and doing so many things independently of the wider web platform. That approach made a lot of sense when it was first released but is just a liability at this point.&lt;p&gt;If you’re deep in React land and it’s all you know I think 2022 might be a good time to expand your horizons a bit because the landscape around you has changed a lot in the past five years.</text></item><item><author>mbell</author><text>&amp;gt; In React 17, React automatically modifies the console methods like console.log() to silence the logs in the second call to lifecycle functions. However, it may cause undesired behavior in certain cases where a workaround can be used.&lt;p&gt;I feel like when you&amp;#x27;ve gotten to the point that something like this has been proposed and accepted as a good solution to a problem your framework is facing, it may be a good time to stop and reconsider the approach of the framework.</text></item></parent_chain><comment><author>lf-non</author><text>Try solid.js [1]&lt;p&gt;I have been using it for a month now and love it. If you are coming from react the API is familiar enough that you can get productive in a day or two. Reliance on observables is a big plus for me (no virtual dom diffing) and the dom reconciliation is very similar to lit. Check out the author&amp;#x27;s blog posts [2] for more details.&lt;p&gt;If are into jamstack, Astro [3] has good support for solidjs already and offers an easy way for selective hydration of dynamic parts of the UI.&lt;p&gt;The component ecosystem is a bit lacking compared to react&amp;#x2F;vue, but it pairs well with pure css libraries like bulma&amp;#x2F;daisyui or webcomponent libraries like ionic&amp;#x2F;shoelace.&lt;p&gt;And you can also wrap your solid components as web components and use them in a larger app without converting it all to use solidjs.&lt;p&gt;[1] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.solidjs.com&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.solidjs.com&amp;#x2F;&lt;/a&gt;&lt;p&gt;[2] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;ryansolid.medium.com&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;ryansolid.medium.com&amp;#x2F;&lt;/a&gt;&lt;p&gt;[3] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;astro.build&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;astro.build&amp;#x2F;&lt;/a&gt;</text></comment>
<story><title>PSA: React 18 calls code twice in strict dev mode to detect side effects</title><url>https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects</url></story><parent_chain><item><author>joeyjojo</author><text>Outside of Vue, and maybe Angular, are there any other stable alternatives with a decent ecosystem? I&amp;#x27;d love to hop off the React train, but I haven&amp;#x27;t found anything that compares to the experience of just using create-react-app with Typescript support.</text></item><item><author>mhoad</author><text>Broadly speaking I think React is in a weird spot where they have painted themselves into a corner with no obvious way of fixing it by essentially forking the DOM and doing so many things independently of the wider web platform. That approach made a lot of sense when it was first released but is just a liability at this point.&lt;p&gt;If you’re deep in React land and it’s all you know I think 2022 might be a good time to expand your horizons a bit because the landscape around you has changed a lot in the past five years.</text></item><item><author>mbell</author><text>&amp;gt; In React 17, React automatically modifies the console methods like console.log() to silence the logs in the second call to lifecycle functions. However, it may cause undesired behavior in certain cases where a workaround can be used.&lt;p&gt;I feel like when you&amp;#x27;ve gotten to the point that something like this has been proposed and accepted as a good solution to a problem your framework is facing, it may be a good time to stop and reconsider the approach of the framework.</text></item></parent_chain><comment><author>djbusby</author><text>RiotJS and SvelteJS get mentioned as alternates in my circles. I like Riot - but only done it on smaller projects.</text></comment>