Easier for JSX users to spot missing `${...}`
- Lenguaje dominante
- JavaScript
- Estrellas
- 9k
- Forks
- 181
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I've been using `htm` for a while now (it's awesome btw), every once in a while though I switch back from a project using JSX and end up writing `` instead of `<${Avatar} />` or `
It is sometimes hard to spot why something's failing, because it fails quietly, doesn't throw an error or obvious warning. I believe (and please correct me) the library could check for attributes starting with `/^{/` or elements starting with `/^[A-Z]/` and warn the user about their potential error.
Because you're very unlikely to have an element with either of the above, it seems like something that could potentially be enabled by default. Or available by default in a developer build.
There is a little demo showing the error at .
Thoughts?
Guía de contribución
Línea de trabajo
Comienza revisando los casos de fallo descritos en el issue y la demo enlazada de htm-suggestion; después, inspecciona el manejo existente de htm para los elementos en mayúsculas y los atributos similares a llaves. Se considera terminado cuando exista una advertencia clara y documentada o un comportamiento en developer-mode para los errores de JSX-to-HTM indicados, con cobertura para ambos ejemplos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100