Page MenuHomeSealhub

select-component.jsx
No OneTemporary

Authored By
Unknown
Size
593 B
Referenced Files
None
Subscribers
None

select-component.jsx

const React = require('react');
const e = React.createElement;
const { components } = require('../../components/index.js');
module.exports = function selectComponent(props) {
return e(
'select',
{
id: 'select-component',
onChange: function onChange(e) {
return props.onChange(e.target.value);
},
value: props.value,
},
e(
'option',
{
value: '',
},
'--Please choose an option--'
),
Object.keys(components).map(function(component) {
return e(
'option',
{
key: component,
value: component,
},
component
);
})
);
};

File Metadata

Mime Type
application/javascript
Expires
Sat, Nov 28, 04:19 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1203359
Default Alt Text
select-component.jsx (593 B)

Event Timeline