See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
—
Tauri is shipped with state management function/feature by default.
Basic usage is quite simple: a variable of State type can be accessed on the tauri commands which you have defined; in other words, "with tauri commands, they'll magically inject state for you," so that once a variable is managed you can inject them directly as additional input when defining the command.
| { | |
| "provincias": { | |
| "1": { | |
| "nombre": "San José", | |
| "cantones": { | |
| "01": { | |
| "nombre": "Central", | |
| "distritos": { | |
| "01": "Carmen", | |
| "02": "Merced", |
| # #!/bin/bash | |
| GITBOOK_REP=$1 | |
| SUMMARY_FILE="SUMMARY.md" | |
| echo $OUTPUT_FILE | |
| if [ -d "$GITBOOK_REP" ]; then | |
| echo "Entering directory '$GITBOOK_REP'..." | |
| cd $GITBOOK_REP |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import { createStore } from 'redux'; | |
| // Preparamos nuestra funcion reducer | |
| const myReducer = (state = 0, action) => { | |
| switch(action.type) { | |
| case 'sumar': | |
| return state + 1; | |
| case 'restar': |
| (function() { | |
| MicheladaJS = { | |
| init: function(){ | |
| this.prepara.la(); | |
| }, | |
| prepara: { | |
| la: function() { | |
| alert(this.ahora()); | |
| }, | |
| ahora: function() { |