Skip to content

Commit

Permalink
buttons
Browse files Browse the repository at this point in the history
Buttons
  • Loading branch information
Supravisor authored Aug 16, 2024
2 parents 2c864f6 + f27c02c commit 9e04657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ input:not([type:"button"]) {
<aside class="left">Object</aside>

<aside class="middle">
<input type="button" class="btn btn-primary" value="copy state" onclick="document.editor.textbox.value+='\nconst defaultState = {\n user: &#34;AlfaOne&#34;,\n status: &#34;offline&#34;\n};\n\nconst immutableReducer = (state = defaultState, action) => {\n switch(action.type) {\n case &#34;ONLINE&#34;:\n return Object.assign({}, state, {status: &#34;online&#34;});\n default:\n return state;\n }\n};\n\nconst wakeUp = () => {\n return {\n type: &#34;ONLINE&#34;\n }\n};\n'">
<input type="button" class="btn btn-primary" value="copy state" onclick="document.editor.textbox.value+='\nconst defaultState = {\n user: &#34;AlfaOne&#34;,\n status: &#34;offline&#34;\n};\n\nconst immutableReducer = (state = defaultState, action) => {\n switch(action.type) {\n case &#34;ONLINE&#34;:\n return Object.assign({}, state, {status: &#34;online&#34;});\n default:\n return state;\n }\n};\n\nconst wakeUp = () => {\n return {\n type: &#34;ONLINE&#34;\n }\n};\n\nconst store = Redux.createStore(immutableReducer);'">
</aside>

</td>
Expand Down

0 comments on commit 9e04657

Please sign in to comment.