npm install -g npm-check-updates
&&ncu -u && ncu -u -ws
&&npm i
- pnpm
corepack prepare [email protected] --activate
- yarn
corepack prepare [email protected] --activate
same result
import type { HTMLAttributes } from 'astro/types';
type Props1 = HTMLAttributes<'svg'>;
type Props2 = astroHTML.JSX.SVGAttributes;
- title and description ://github.com/vercel/next.js/discussions/50872
- default colinhacks/zod#1953
- express, fastify, koa, hono, hapi
- https://www.npmjs.com/package/tailwind-merge - does not remove unused styles
- https://preline.co/index.html
-
React.ReactElement
- React element (<Foo />
); similarJSX.Element
(deprecated) ->React.JSX.Element
-
React.ReactNode
- describes anything that can be rendered - strings, numbers, elements or an array of these things -
React.ElementType
- React component (import Fooโฆ) -
html components
type Props = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
interface Props extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> { active?: boolean }
-
@types/react
// // Event Handler Types // ---------------------------------------------------------------------- type EventHandler<E extends SyntheticEvent<any>> = { bivarianceHack(event: E): void; }['bivarianceHack']; type ReactEventHandler<T = Element> = EventHandler<SyntheticEvent<T>>; type ClipboardEventHandler<T = Element> = EventHandler<ClipboardEvent<T>>; type CompositionEventHandler<T = Element> = EventHandler< CompositionEvent<T> >; type DragEventHandler<T = Element> = EventHandler<DragEvent<T>>; type FocusEventHandler<T = Element> = EventHandler<FocusEvent<T>>; type FormEventHandler<T = Element> = EventHandler<FormEvent<T>>; type ChangeEventHandler<T = Element> = EventHandler<ChangeEvent<T>>; type KeyboardEventHandler<T = Element> = EventHandler<KeyboardEvent<T>>; type MouseEventHandler<T = Element> = EventHandler<MouseEvent<T>>; type TouchEventHandler<T = Element> = EventHandler<TouchEvent<T>>; type PointerEventHandler<T = Element> = EventHandler<PointerEvent<T>>; type UIEventHandler<T = Element> = EventHandler<UIEvent<T>>; type WheelEventHandler<T = Element> = EventHandler<WheelEvent<T>>; type AnimationEventHandler<T = Element> = EventHandler<AnimationEvent<T>>; type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
-
โฆ
- use expo ๐
vecel.json
{
"github": {
"enabled": false
}
}
name: deploy @tf/next-playground
on:
workflow_dispatch:
workflow_call:
jobs:
deploy-vercel-3:
runs-on: ubuntu-latest
strategy:
matrix:
environment: [testing, production]
steps:
- uses: actions/checkout@v3
- uses: uses: actions/setup-node@v3
- run: npm install --global vercel@latest
- name: deploy project 3 to Vercel
run: |
prodRun=""
if [[ ${GITHUB_REF} == "refs/heads/master" ]]; then
prodRun="--prod"
fi
vercel --token ${VERCEL_TOKEN} $prodRun
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_3 }}
{
"github": {
"enabled": false
},
"cleanUrls": true,
"trailingSlash": false,
"rewrites": [{ "source": "/(.*)", "destination": "/" }]
}