0.1.4 • Published 5 years ago
flyvv-com v0.1.4
Used TSDX For React Component
Ellipsis
interface IProps {
value: string | number | boolean;
style?: React.CSSProperties;
maxWidth?: number;
}Commands
npm start # or yarn startThis 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 startSetup 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.jsonTypeScript
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
5 years ago