Skip to content
Ryan Johnson edited this page Jul 6, 2018 · 12 revisions

Tech Stack

  • TypeScript (to distribute centralized type definitions)
  • Deploy to NPM (consume via import or require())

Support

  • Browsers: IE11, Edge, Firefox, Chrome, Safari
  • Environments: ES6 (will require bundling in consuming app)
  • React: v15+

Standards

No Prefix

Given that the majority of public React component libraries do not prefix their exported components, and the lack of any solid pros/cons of prefixed vs unprefixed (aside from the number of characters to type), it's best to go with the implied industry standard of unprefixed components.

👍 Do

export class Checkbox extends React.Component { ... }
export class Menu extends React.Component { ... }
import { Checkbox, Menu } from 'helix-react';

👎 Don't

export class HxCheckbox extends React.Component { ... }
export class HXMenu extends React.Component { ... }
import { HxCheckbox as Checkbox } from 'helix-react';
import { HXMenu as Menu } from 'helix-react';
Clone this wiki locally