0.1.4 • Published 3 years ago

flyvv-com v0.1.4

Weekly downloads
2
License
ISC
Repository
-
Last release
3 years ago

Used TSDX For React Component

Ellipsis

interface IProps {
    value: string | number | boolean;
    style?: React.CSSProperties;
    maxWidth?: number;
}

Commands

npm start # or yarn start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

Then run the example inside another:

cd example
npm i # or yarn to install dependencies
npm start # or yarn start

Setup Files

This is the folder structure we set up for you:

/example
  index.html
  index.tsx       # test your component here in a demo app
  package.json
  tsconfig.json
/src
  index.tsx       # EDIT THIS
/test
  blah.test.tsx   # EDIT THIS
.gitignore
package.json
README.md         # EDIT THIS
tsconfig.json

TypeScript

tsconfig.json is set up to interpret dom and esnext types, as well as react for jsx. Adjust according to your needs.

0.1.4

3 years ago