This commit is contained in:
Dan Chadwick
2024-04-09 01:47:04 +00:00
parent 3bcbe3b783
commit 3cfd95ee81
219 changed files with 47894 additions and 3767 deletions

33553
web/modules/custom/ufc/js/dist/main.min.js vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,9 @@
import React, { Component } from 'react';
class Button extends Component {
render() {
return <button>my button</button>;
}
}
export default Button;

View 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;

View 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" />);