javascript function? For example, the following code:
import CheckPermissions from "./CheckPermissions";
const Authorized = ({ children, authority, noMatch = null }) => { //
const childrenRender = typeof children === "undefined" ? null : children;
return CheckPermissions(authority, childrenRender, noMatch);
};
The problem is that the curly braces of the second line of code pass parameters, doesn"t it seem to work without curly braces? What"s the difference between using curly braces and not using curly braces?