Closed roberbnd closed 6 years ago
Is possible configure the plugin to work with react, I have this, but doesn't work in the attributes of the tags
import React from 'react'; import uid from 'uid'; const CourseAddForm = (props) => ( <form onSubmit={props.onAddCourse}> <input type="text" placeholder="Nombre del curso" name="name"/> <input type="text" placeholder="Profesor" name="teacher"/> <input type="hidden" name="id" value={Math.floor( Math.random() * 100 )}/> <input type="submit" value="Guardar"/> </form> ); export default CourseAddForm;
I found my filetype was "javascript" not "javascript.jsx" thanks it's working !
Excellent, glad it worked out :).
Is possible configure the plugin to work with react, I have this, but doesn't work in the attributes of the tags