Esse script é um hook customizado para possibilitar a espera da execução de atualização de estados no ReactJS.
Exemplo de uso:
import React, {useState} from 'react';
import useStateWithPromise from 'useStateWithPromise.js';
CREATE TABLE IF NOT EXISTS wp_chart_teams ( | |
id bigint(20) NOT NULL AUTO_INCREMENT, | |
name varchar(255) NOT NULL, | |
emoji varchar(255) NOT NULL, | |
parent_id bigint(20), | |
user_id bigint(20) unsigned NOT NULL, | |
UNIQUE(id), | |
PRIMARY KEY (id) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; |
codec = { | |
'646' : 'ascii', | |
'us-ascii' : 'ascii', | |
'big5-tw' : 'big5', | |
'csbig5' : 'big5', | |
'big5-hkscs' : 'big5hkscs', | |
'hkscs' : 'big5hkscs', | |
'IBM037' : 'cp037', | |
'IBM039' : 'cp037', | |
'273' : 'cp273', |
#!/bin/bash | |
: ' | |
########################################### | |
# Stript for read my installed extensions # | |
########################################### | |
extensions=( $(code --list-extensions | xargs -L 1) ) |