Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>React Generator V2New to Visual Studio Code? Get it now.
React Generator V2

React Generator V2

Đỗ Mạnh Tài

|
16 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Tính năng ở extension này

  • [x] Generate fromJson
  • [x] Generate toString
  • [x] Generate value in provider

From json

alt

export class ChannelModel {
    id?: number
    name?: string
    
    static fromJson(json: ChannelModel): ChannelModel {
        const data = Object.assign(new ChannelModel(), json)
        return data
    }
    
    toString(): string {
        return JSON.stringify(this)
    }
}

Provider

alt

  • And then

alt

Build visx

  • If not install vsce, run:
sudo npm i -g @vscode/vsce
npm run build
  • Export useForm, useState, useRef, function, arrow function
  • Class fromJson exactly
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft