Examples

App entry

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="theme-color" content="#000000">
    <title>React Examples</title>
  </head>
  <body>
    <noscript>
      You need to enable JavaScript to run this app.
    </noscript>
    <div id="root"></div>
  </body>
</html>
// index.tsx

import React from 'react'
import ReactDOM from 'react-dom'
import { A10Provider } from 'a10-gui-framework'

import './styles/index.less'

import Root from './Root'

ReactDOM.render(
  <A10Provider>
    <Root />
  </A10Provider>,
  document.getElementById('root') as HTMLElement,
)

How to create a Hello World page

Enhance the Hello World page

Enhance the Hello World page with Redux

Introduce a form page. How to setup, import widgets, and hook up APIs

Condition 1: without Redux

Setup:

Under the path “containers\FW\RuleSet\ZoneForm” create ZoneForm.tsx

import widgets:

Hook APIS:

getData:

SaveData:

Condition 2:with Redux

Show data/table.

How to display it

Users roles with permission

How to update the data

How to delete data

How to use A10 GUI common: AutoLog Gen

How to use A10 App Generator

Extra: Using the examples above with the A10 Generator

Last updated

Was this helpful?