What is the difference between ' and "
relative to imports: import React from "react";
and import React from 'react';
will it make difference?
Asked
Active
Viewed 50 times
-6

Rafał Figura
- 5,428
- 1
- 15
- 20

HITESH CHOUDHARY
- 7
- 1
-
3No, it won't. The quoting style doesn't matter. – Ramesh Reddy Sep 11 '20 at 06:23
-
It doesn't have any difference. In react 17 (latest version ), If you are making app through Create React App boiler plate or download react through npm, There is no need to import React. – Ahmad Suddle Sep 11 '20 at 06:45
1 Answers
1
”
and ’
are completely equivalent in JavaScript in all purposes (strings, import, ecc.). Worth noticing that in json only ”
is valid.

Sintuz
- 502
- 5
- 14