Missing JSX expression container around literal string: "submit" react/jsx-no-literals

1.3k Views Asked by At

I have just added eslint-plugin-react to my react project, while I'm trying to add a button to my project like this:

<button type="submit">submit</button>

eslint starts to blame the code style and throws the following error:

  Line 46:55:  Strings not allowed in JSX files: "submit"  react/jsx-no-literals

any idea on this? any ideas and suggestions would be appreciated :)

0

There are 0 best solutions below