mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Explicitely support React out of the box
This commit is contained in:
parent
ca7cc26df5
commit
4e0b798031
7 changed files with 63 additions and 10 deletions
|
|
@ -31,14 +31,15 @@ $ npm install --save #{REPO_NAME}#
|
|||
```
|
||||
|
||||
```typescript
|
||||
import { myFunction, myObject } from "#{REPO_NAME}#";
|
||||
import { myFunction, myObject, MyReactComponent } from "#{REPO_NAME}#";
|
||||
```
|
||||
|
||||
Specific imports:
|
||||
Specific imports, only import what you need:
|
||||
|
||||
```typescript
|
||||
import { myFunction } from "#{REPO_NAME}#/myFunction";
|
||||
import { myObject } from "#{REPO_NAME}#/myObject";
|
||||
import MyReactComponent from "#{REPO_NAME}#/MyReactComponent";
|
||||
```
|
||||
|
||||
# Contributing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue