35 lines
394 B
Markdown
35 lines
394 B
Markdown
|
# 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
|
||
|
```
|
||
|
|