Rebuild
This commit is contained in:
33553
web/modules/custom/ufc/js/dist/main.min.js
vendored
Normal file
33553
web/modules/custom/ufc/js/dist/main.min.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
web/modules/custom/ufc/js/dist/main.min.js.map
vendored
Normal file
1
web/modules/custom/ufc/js/dist/main.min.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
9
web/modules/custom/ufc/js/src/components/Button.js
Normal file
9
web/modules/custom/ufc/js/src/components/Button.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import React, { Component } from 'react';
|
||||
|
||||
class Button extends Component {
|
||||
render() {
|
||||
return <button>my button</button>;
|
||||
}
|
||||
}
|
||||
|
||||
export default Button;
|
||||
22
web/modules/custom/ufc/js/src/components/Table.js
Normal file
22
web/modules/custom/ufc/js/src/components/Table.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import React, { Component } from 'react';
|
||||
|
||||
function Table(props) {
|
||||
const tableElem = (
|
||||
<table className={ props.type }>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Header 1</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>This is first item in row</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
|
||||
return tableElem;
|
||||
}
|
||||
|
||||
export default Table;
|
||||
14
web/modules/custom/ufc/js/src/index.jsx
Normal file
14
web/modules/custom/ufc/js/src/index.jsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import Button from './components/Button';
|
||||
import Table from './components/Table';
|
||||
|
||||
const container = document.getElementById('react-app');
|
||||
const root = createRoot(container);
|
||||
|
||||
function FirstFunc(props) {
|
||||
return <h1>Hello from firstFunc</h1>;
|
||||
}
|
||||
|
||||
// root.render(<FirstFunc />);
|
||||
root.render(<Table type="table-dark table-striped table" />);
|
||||
Reference in New Issue
Block a user