thaycacac
I hereby claim:
- I am thaycacac on github.
- I am thaycacac (https://keybase.io/thaycacac) on keybase.
- I have a public key ASDeGPdl9vdaj5m2wykedNEpLjWyizbW5xpJk7VCotpBRAo
To claim this, I am signing this object:
thaycacac
I hereby claim:
To claim this, I am signing this object:
yarn add -D @nuxtjs/eslint-config babel-eslint eslint eslint-config-standard eslint-loader eslint-plugin-babel eslint-plugin-import eslint-plugin-node eslint-plugin-prettier eslint-plugin-promise eslint-plugin-standard eslint-plugin-vue prettier
File .eslintrc.js
module.exports = {
root: true,
env: {
Example useRef
import React, { forwardRef, useRef, useImperativeHandle } from 'react';
// We need to wrap component in `forwardRef` in order to gain
// access to the ref object that is assigned using the `ref` prop.
// This ref is passed as the second parameter to the function component.
const Child = forwardRef((props, ref) => {
`javascript | |
import React, { forwardRef, useRef, useImperativeHandle } from 'react'; | |
// We need to wrap component in `forwardRef` in order to gain | |
// access to the ref object that is assigned using the `ref` prop. | |
// This ref is passed as the second parameter to the function component. | |
const Child = forwardRef((props, ref) => { | |
// The component instance will be extended | |
// with whatever you return from the callback passed |
Mô tả:
window.$ is not a function
Nguyên nhân: Do phần external resources của component nó chạy sau lifecycle nuxtjs.
Giải quyết:
Render HTML to React Native
import HTMLView from 'react-native-htmlview'
<HTMLView value={value.excerpt.rendered} renderNode={this.renderNode} />
renderNode(node) {
if (node.name === 'img') {
const a = node.attribs
Độ mạnh của mật khẩu
^(?=.*[A-Z].*[A-Z])(?=.*[!@#$&*])(?=.*[0-9].*[0-9])(?=.*[a-z].*[a-z].*[a-z]).{8}$
Xác thực email
/[A-Z0-9._%+-]+@[A-Z0-9-]+.+.[A-Z]{2,4}/igm
This is document prepare for practice example course Web-Based Java Applications
.
DBContext
package com.context;
import java.sql.Connection;
import java.sql.DriverManager;
public class DBContext {
/*USE BELOW METHOD FOR YOUR DATABASE CONNECTION FOR BOTH SINGLE AND MULTILPE SQL SERVER INSTANCE(s)*/