Hi there...
For a while now Facebook has been working on ReAct, their flagship javascript library to create UIs. There is a variant of this called ReAct-Bootstrap but however I just wanted to try and test if I was going to be able to do this first before I really decide on taking it further, towards a React-Native hybrid app developer.
For now, this is just a single HTML 5 page created with the ReActBootstrap framework based on a b4j "could-be" library.
There is nothing really fancy as of yet, you can create a navigation bar, the buttons, the form controls and the buttons and also a grid based on bootstrap.
My Main code is like...
This creates the necessary "index.html" file with its components and then opens the page in the browser. I've tried to follow React's way of doing things i.e.
1. create a div and give it an id
2. create a component and or assign it to a variable
3. react the component to the div
For a while now Facebook has been working on ReAct, their flagship javascript library to create UIs. There is a variant of this called ReAct-Bootstrap but however I just wanted to try and test if I was going to be able to do this first before I really decide on taking it further, towards a React-Native hybrid app developer.
For now, this is just a single HTML 5 page created with the ReActBootstrap framework based on a b4j "could-be" library.
There is nothing really fancy as of yet, you can create a navigation bar, the buttons, the form controls and the buttons and also a grid based on bootstrap.
My Main code is like...
B4X:
Dim app As RBApp
app.Initialize
app.AppName = "ReactBootstrapMash"
app.appid = "com.Mashy.ReactBootstrapMash"
app.Version = "1.00"
app.Author = "Anele Mashy Mbanga"
app.Website = "http://www.mbangas.com"
app.Email = "anele@mbangas.com"
'*****build the pages
Dim myIndex As pgIndex
myIndex.Initialize(app,"index")
myIndex.Build
'add the pages to the app
app.addpage(myIndex.page)
'build the app
app.Build
'open the compiled app
app.open
This creates the necessary "index.html" file with its components and then opens the page in the browser. I've tried to follow React's way of doing things i.e.
1. create a div and give it an id
2. create a component and or assign it to a variable
3. react the component to the div
Last edited: