1.0.6 • Published 7 years ago

@bcoe/test-typescript-jsx v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
7 years ago

JSX Highlighting for the Highlighting Gods

JSX and TypeScript are both getting pretty darn popular, we should definitely support highlighting their syntax in READMEs!

use ```jsx for JSX highlightning:

class Thinger extends React.Component {
  constructor(props) {
    super(props)
  }
  render() {
    return (
      <div>{this.whatever}</div>
    )
  }
}

use ```ts or ```typescript for TypeScript highlighting:

declare namespace myLib {
    function makeGreeting(s: string): string;
    let numberOfGreetings: number;
}
declare namespace myLib {
    function makeGreeting(s: string): string;
    let numberOfGreetings: number;
}
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago