Permalink
Browse files

Fix typo in origin story.

  • Loading branch information...
Conrad Beach
Conrad Beach committed Jan 11, 2018
1 parent de381fa commit c7b47f72bcc16f8365785d62ebc034ae13d0437b
Showing with 1 addition and 1 deletion.
  1. +1 −1 ORIGIN.md
View
@@ -45,7 +45,7 @@ It’s designed to read as a progressive enhancement when you look at the HTML i
You can read that and have a pretty good idea of what’s going on. Even without knowing anything about Stimulus or looking at the controller code itself. It’s almost like pseudocode. That’s very different from reading a slice of HTML that has an external JavaScript file apply event handlers to it. It also maintains the separation of concerns that has been lost in many contemporary JavaScript frameworks.
As you can see, Stimulus doesn’t bother itself with creating the HTML. Rather, it attaches itself to an existing HTML document. The HTML is, in the majority of cases, rendered on the server on either on the page load (first hit or via Turbolinks) or via an Ajax request that changes the DOM.
As you can see, Stimulus doesn’t bother itself with creating the HTML. Rather, it attaches itself to an existing HTML document. The HTML is, in the majority of cases, rendered on the server either on the page load (first hit or via Turbolinks) or via an Ajax request that changes the DOM.
Stimulus is concerned with manipulating this existing HTML document. Sometimes that means adding a CSS class that hides an element or animates it or highlights it. Sometimes it means rearranging elements in groupings. Sometimes it means manipulating the content of an element, like when we transform UTC times that can be cached into local times that can be displayed.

0 comments on commit c7b47f7

Please sign in to comment.