So Expandable.Header in this case has the value “I’m a header”.
Edit: Note that everything that isn’t a primitive (eg numbers, strings, booleans) in JS is an object, so arrays, functions, maps, sets etc are all objects. So you may well see code like:
It’s exactly the same thing, albeit slightly confusing. You have an object Expandable. That’s a function (React component). It also has a property Header, which is also a function.
I can’t see the material because it is behind a paywall.
But it is either a library or local code being imported - but it is the same. It is the same thing with React, for example. If I want to use React’s useState hook, I can import it like:
import React from 'react';
And then I have to access useState as a property, as React.useState.
Or I could do this:
import React, { useState } from 'react';
And then I have to access useState as a property, as useState.
I could probably also do something like:
import React from 'react';
const useState = React.useState;
or
import React from 'react';
const { useState } = React;
And then I have to access useState as a property, as useState.
It’s all about how JS objects and modules work.
I tend to prefer the second option, but I commonly see the first example.