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
    
  
  
    
  | { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "PublicReadGetObject", | |
| "Effect": "Allow", | |
| "Principal": "*", | |
| "Action": [ | |
| "s3:GetObject" | |
| ], | 
  
    
      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
    
  
  
    
  | export const todoReducer = ( initialState = [], action ) => { | |
| switch ( action.type ) { | |
| case '[TODO] Add Todo': | |
| return [ | |
| ...initialState, | |
| action.payload | |
| ] | |
  
    
      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
    
  
  
    
  | import { useState } from "react"; | |
| export const useForm = ( initialForm = {} ) => { | |
| const [formState, setFormState] = useState( initialForm ); | |
| const onInputChange = ({ target }) => { | |
| const { name, value } = target; | 
  
    
      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
    
  
  
    
  | import { useEffect, useState } from "react" | |
| const localCache = {}; | |
| export const useFetch = ( url ) => { | |
| const [state, setState] = useState({ | |
| data: null, | |
| isLoading: true, | |
| hasError: false, | 
  
    
      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
    
  
  
    
  | import { useState } from "react" | |
| export const useCounter = ( initValue = 1) => { | |
| const [counter, setCounter] = useState(initValue); | |
| const increment = ( step = 1 ) => { | |
| setCounter( (current) => current + step); | |
| } | |
| const decrement = ( step = 1 ) => { | 
  
    
      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
    
  
  
    
  | function getBrowserType(){ | |
| if( navigator.userAgent.indexOf('MSIE 7') > -1 ){ | |
| return BrowserString("MSIE 7"); | |
| } | |
| if( navigator.userAgent.indexOf('MSIE 8') > -1 ){ | |
| return BrowserString("MSIE 8"); | |
| } | |
| if( navigator.userAgent.indexOf('MSIE 9') > -1 ){ | |
| return BrowserString("MSIE 9"); | 
  
    
      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
    
  
  
    
  | const holi = 'hola mundo'; |