final-form / final-form/react-final-form

Parse/format example using wrong React/ReactDOM versions

Offen
#421 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
7.4k
Forks
497
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Are you submitting a **bug report** or a **feature request**?
Bug report

### What is the current behavior?
The `parse`/`format` sandbox example isn't working due to its React/ReactDOM versions. This example is currently using version `16.0.0`. In this one, `React.createContext()` isn't available yet, and that's what's breaking the example.

### What is the expected behavior?
The new context API is available from version `16.3.0`. Updating both React and React DOM versions in the `package.json` file should do it.

### Sandbox Link
https://codesandbox.io/s/10rzowm323

### What's your environment?
```
"dependencies": {
"styled-components": "latest",
"react-final-form": "latest",
"react-dom": "16.0.0",
"react": "16.0.0",
"final-form": "latest"
}
```

### Other information
I would fix this small bug, but I didn't figure it out how to edit the sandbox code. If there's a way, I'd gladly do it.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.