This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9e859310-9c33-11e9-99ea-4cc81a3fcbe9…2019-07-01 12:08:32 | |
Request URL: https://circleci.com/hooks/github | |
Request method: POST | |
content-type: application/x-www-form-urlencoded | |
Expect: | |
User-Agent: GitHub-Hookshot/f221634 | |
X-GitHub-Delivery: 9e859310-9c33-11e9-99ea-4cc81a3fcbe9 | |
X-GitHub-Event: pull_request | |
X-Hub-Signature: sha1=b7f156eebaa5d2b96b9d9989e8ac744d32802840 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Personally the way I understood them was that behaviors are similar-ish to mixins to a module. | |
They are however not mixins. They are used to extract out common things needed in multiple modules. | |
As an example that we use within Box's webapp: | |
Say you have 2 modules - Foo and Bar. Both of these modules need a simple drop down menu showing some items. | |
The items shown are different for Foo and Bar, likewise when you click on an item, the action they perform | |
are also different for Foo and Bar. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// todo-list module | |
Application.addModule('todo-list', function(context) { | |
var xhr; | |
var TodoList = React.createClass({ | |
render: function() { | |
return ( | |
<div> | |
<TodoItems /> |