final-form / final-form/react-final-form
Parse/format example using wrong React/ReactDOM versions
- Lingua principale
- JavaScript
- Stelle
- 7.4k
- Fork
- 497
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### 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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Apri l’esempio di parse/format di CodeSandbox collegato e ispeziona le sue dipendenze in package.json. Aggiorna React e ReactDOM dalla versione 16.0.0 a una versione che fornisca createContext, quindi conferma che l’esempio della sandbox venga caricato e funzioni senza l’errore segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 55/100