This file contains 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
basicSelect = () => { | |
return knex('workouts') | |
.select('*') | |
} | |
basicFilter = (knex) => { | |
return knex | |
.where('workout_id', 1) | |
} |
This file contains 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
function decorateRBAC(fn) { | |
console.log('----start decorate-----'); | |
console.log(...arguments); | |
console.log('fn-name:', fn.name); | |
console.log('----end-----'); | |
return fn; | |
} | |
function withValidation(fn) { | |
const handlerName = fn.name; |
This file contains 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
import { useCount, useIncrement, useDecrement } from './store.Count' | |
export default function Counter () { | |
const count = useCount() | |
const increment = useIncrement() | |
const decrement = useDecrement() | |
return ( | |
<div> | |
<div>Count: {count}</div> |
OlderNewer