@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
14 lines (10 loc) • 427 B
JSX
import React from 'react';
import createReactClass from 'create-react-class';
import Radio from '~/components/forms/radio'; // `~` is replaced with design-system-react at runtime
const Example = createReactClass({
displayName: 'RadioExample',
render () {
return <Radio id="radioId1" label="Radio Label" />;
},
});
export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime