We’re excited to announce Bit’s new home at bit.dev!Learn more

react-typescript

v3.0.0arrow_drop_down
v3.0.0
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
17,271
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 days ago
subject
Compiles a React component for TypeScript.
2 contributors
Like
Use react-typescript in your project ?
Copied
npm i @bit/bit.envs.compilers.react-typescript
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
bit import bit.envs/compilers/react-typescript -c
modified
chevron_left
chevron_right

A Component compiler for React components using TypeScript.

Compiles a React component for TypeScript.

How to use?

Import the environment

 bit import bit.envs/compilers/react-typescript -c

Then build using bit build.

bit build

What’s inside

  • Compiles ts and tsx files.
  • In order to see which typescript config are used, take a look at the tsconfig.json file.

Reconfiguring this environment

In case the configuration presets in the tsconfig file of this component are not well suited to your needs, follow these steps to modify it.

Got any issues or questions?

Collaboration on this Bit environment happens in this repository. Please open an issue or submit pull request there.