Skip to content

Commit

Permalink
component should not be translated
Browse files Browse the repository at this point in the history
  • Loading branch information
masbagal committed Aug 6, 2019
1 parent 18086bf commit 4b0d6fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/docs/code-splitting.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,16 @@ const App = () => (
```js
// KumpulanKomponen.js
export const MyComponent = /* ... */;
export const KomponenTidakTerpakai = /* ... */;
export const MyUnusedComponent = /* ... */;
```

```js
// MyComponent.js
export { MyComponent as default } from "./KumpulanKomponen.js";
export { MyComponent as default } from "./ManyComponents.js";
```

```js
// AplikasiSaya.js
// MyApp.js
import React, { lazy } from 'react';
const MyComponent = lazy(() => import("./MyComponent.js"));
```

0 comments on commit 4b0d6fd

Please sign in to comment.