Similar issues #69, in this case with arrow function. I also use javascript-libraries-syntax.vim and I have configured the libraries(let g:used_javascript_libs = 'chai, d3, flux, react').
import React, { PropTypes } from 'react'
import { languages } from '../config'
function Form ({ handleLanguageChange, language }) {
return (
<div>
<label htmlFor='language'>Language: </label>
<select id='language' value={language} onChange={handleLanguageChange}>
{ languages.map((language, index) => {
return <option value={language} key={index}> {language} </option>
})}
</select>
</div>
)
}
export default Form
Similar issues #69, in this case with arrow function. I also use javascript-libraries-syntax.vim and I have configured the libraries(
let g:used_javascript_libs = 'chai, d3, flux, react'
).Highlights scoped
return