I'm reading someone's nodejs source and it has:
import request from 'reqwest';
import {minify} from 'html-minifier';
Why there is a {} pair on the minify? What does this {} do?
I'm reading someone's nodejs source and it has:
import request from 'reqwest';
import {minify} from 'html-minifier';
Why there is a {} pair on the minify? What does this {} do?
 
    
    Curly braces { } are special syntax in JSX which are used to evaluate a JavaScript expression( A JavaScript expression can be a variable, function, object, etc..)