Skip to content

Commit

Permalink
Merge pull request #2 from wpdas/feature/handle-duplicated-consts
Browse files Browse the repository at this point in the history
feature: handle duplicated consts
  • Loading branch information
wpdas authored Mar 12, 2024
2 parents 83cb421 + 8a171b6 commit 413bbce
Show file tree
Hide file tree
Showing 11 changed files with 618 additions and 73 deletions.
26 changes: 0 additions & 26 deletions docs/feature-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,3 @@ export const ComponentB = () => {
return <ComponentA name="Wendz" />;
};
```

## Good to Know

You can't use the same name for things. Otherwise, the compiler will break.

### Correct

```ts
// fileA.ts
const MyValue = 2;

// fileB.ts
const MyValueB = 5;
```

### Incorrect

The example below will break up the app because both consts are using the same name.

```ts
// fileA.ts
const MyValue = 2;

// fileB.ts
const MyValue = 5;
```
Loading

0 comments on commit 413bbce

Please sign in to comment.