Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

react-typescript

v3.0.24arrow_drop_down
v3.0.24
v3.0.23
v3.0.22
v3.0.21
v3.0.20
v3.0.19
v3.0.18
v3.0.17
v3.0.16
v3.0.15
v3.0.14
v3.0.13
v3.0.12
v3.0.11
v3.0.10
v3.0.9
v3.0.8
v3.0.7
v3.0.6
v3.0.5
v3.0.4
v3.0.3
v3.0.2
v3.0.1
v3.0.0
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
21,809
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 days ago
SIZE
N/A
subject
Bit react typescript compiler. Compiles a React component for TypeScript.(LEGACY - read below)
4 contributors
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
React
React
Vue
Angular
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';
revert changes
reload
toggle layout
maximize
modifieddraft
chevron_left
chevron_right

Legacy Note

This compiler is kept for legacy reasons so veteran bit users will still get typescript updates. If you are new user go a head and use https://bit.dev/bit/envs/compilers/typescript directly.

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.
  • Emit d.ts 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.