/zlj-font-awesome

Primary LanguageHTMLMIT LicenseMIT

zlj-font-awesome application for registering the react-fontawesome component

Usage

Your application can use react-fontawesome components by add zlj-font-awesome dependency.

  1. Add dependency
$ maka add zlj-font-awesome
  1. Modify the view
const view = {
    component: 'div',
    children: [{
        component: 'FA',
        style: { fontSize: 30},
        name: 'rocket'
    }]
}
  1. Modify the index.html
<script>
    window.main = function (maka) {
        maka.load(['zlj-font-awesome']).then(()=>{
            maka.render('yourApp','app')
        })
    }
<script>

Download and run

  1. Download
  2. Decompress
  3. Enter decompress directory
  4. Run
$ yarn install
$ yarn start

License

MIT