zlj-font-awesome application for registering the react-fontawesome component
Your application can use react-fontawesome components by add zlj-font-awesome dependency.
- Add dependency
$ maka add zlj-font-awesome
- Modify the view
const view = {
component: 'div',
children: [{
component: 'FA',
style: { fontSize: 30},
name: 'rocket'
}]
}
- Modify the index.html
<script>
window.main = function (maka) {
maka.load(['zlj-font-awesome']).then(()=>{
maka.render('yourApp','app')
})
}
<script>
- Download
- Decompress
- Enter decompress directory
- Run
$ yarn install
$ yarn start
MIT