thp/doc-generator/markdown/en/docs/latest/modules/import.md

35 lines
394 B
Markdown
Raw Normal View History

# Modules
```md-info
Subject to change
```
## Idea 1: Copy ES2015 modules
```misti
import React, {useState} from "react"
import "./utils/math"
```
## Idea 2: Python-like ES2015 modules
```misti
from "react" import React, {useState}
import "./utils/math"
```
## Idea 3: F#-like modules
```misti
use React
use Math
```
## Idea 4: Java-like modules
```misti
use React
use utils.Math
```