Skip to content
Vincle

Loading…

    Installation

    @vincle/core has zero runtime dependencies. Install it and configure TypeScript. That's all.

    Package manager#

    Terminal window
    npm install @vincle/core

    TypeScript configuration#

    Set jsxImportSource in your tsconfig.json so JSX files need no import:

    {
    "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "@vincle/core"
    }
    }

    Attributes are typed per element (src on <img>, href on <a>), with nothing extra to install: see JSX types.

    Where to next#