<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="286770" data-post-id="286770">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="neilberkman" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  neilberkman
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>FWIW, ChrisMcCord mentioned colocated JS as a goal for 1.0, although he’s not sure if it will be done in time for the initial release: <a href="https://www.youtube.com/watch?v=FADQAnq0RpA&amp;t=3685s" rel="noopener nofollow ugc">https://www.youtube.com/watch?v=FADQAnq0RpA&amp;t=3685s</a></p>
<p>Another question on this topic: are there any remaining advantages to Surface over LiveView at this point?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="286770" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/component-library-surface-or-liveview/53968/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-286770" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="286770"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="286790" data-post-id="286790">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="mayel" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mayel/120/26431_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  mayel
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="neilberkman" data-post="12" data-topic="53968">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/n/8edcca/48.png" class="avatar"> neilberkman:</div>
<blockquote>
<p>are there any remaining advantages to Surface over LiveView at this point?</p>
</blockquote>
</aside>
<p>While it’s been great to see LiveView adopt some of Surface’s goodies, there’s still more:</p>
<ul>
<li>both scoped JS and scoped CSS</li>
<li><code>css_variant</code> option on component props to auto-generate CSS class (i.e. tailwind) variants based on prop values</li>
<li><a href="https://surface-ui.org/contexts" rel="noopener nofollow ugc">contexts</a> are huge for making certain assigns (eg current_user) available without needed to explicitly pass them to every child component</li>
<li><code>Dynamic.Component</code> and <code>Dynamic.LiveComponent</code> for including components with a dynamic name (eg. configurable widgets)</li>
<li><code>MacroComponent</code> for creating specific components that are rendered at compile time (eg. to process static content like markdown, SVG icons, etc only once)</li>
</ul> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="286790" data-batch-url="/posts/batch_likers">
                        5
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/component-library-surface-or-liveview/53968/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-286790" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="286790"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-most-liked cat-most-liked" title="One of the top 3 liked posts in this thread!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>