<marquee>
@pirelenito
Tech-lead at Mojang
UI layout engine based on web standards.
Itβs similar to a web-browser, but optimized for games.
Β
https://youtu.be/DMza7sGJ-Ro
import * as React from 'react'
import * as ReactDOM from 'react-dom'
const App = () => {
return <div>Hello FikaJS</div>
}
ReactDOM.render(<App />, document.getElementById('root'))
import * as React from 'react'
import * as ReactDOM from 'react-dom'
const App = () => {
return <div>Hello FikaJS</div>
}
ReactDOM.render(<App />, document.getElementById('root'))
React for web
React for native
import React from 'react'
function App() {
return (
<div>
<p>Hello World!</p>
<p>
You just use HTML tags.
</p>
</div>
)
}
import React from 'react'
import { Text, View } from 'react-native'
function App() {
return (
<View>
<Text>Hello World!</Text>
<Text>
Use native components.
</Text>
</View>
)
}react
react-dom
react
react-native
React for web
React for native
react
react-dom
React for web
React APIs:
react
react-dom
React for web
react
react-dom
React for web
reconciler
DOM hostConfig
react
react-dom
React for web
reconciler
DOM hostConfig
react
react-dom
React for web
reconciler
DOM hostConfig
react
react-native
React for native
reconciler
Native hostConfig
react
react-dom
React for web
reconciler
DOM hostConfig
react
react-native
React for native
reconciler
Native hostConfig
<box>First box.</box>
<pointLight position={[10, 10, 10]} />
"...supports all popular browsers, including Internet Explorer 9 and above..."
A renderer that only renders <marquee>
<marquee width="200" height="150" bgColor="#ECBCBC" direction="down" behavior="alternate">
<marquee behavior="alternate">Fika.JS</marquee>
</marquee>import * as React from 'react'
import * as ReactDOM from 'react-dom'
const App = () => {
return (
<marquee width="200" height="150" bgColor="#ECBCBC" direction="down" behavior="alternate">
<marquee behavior="alternate">Fika.JS</marquee>
</marquee>
)
}
ReactDOM.render(<App />, document.getElementById('root'))
import * as React from 'react'
import * as ReactDOM from 'react-marquee-renderer'
const App = () => {
return (
<marquee width="200" height="150" bgColor="#ECBCBC" direction="down" behavior="alternate">
<marquee behavior="alternate">Fika.JS</marquee>
</marquee>
)
}
ReactDOM.render(<App />, document.getElementById('root'))
β me yarn create react-app fika-js-example
yarn create v1.7.0
[1/4] π Resolving packages...
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
[4/4] π Building fresh packages...
success Installed "create-react-app@3.4.1" with binaries:
- create-react-app
[####################################################################################################] 100/100
Happy hacking!
β¨ Done in 35.30s.
β meyarn create react-app fika-js-example
https://www.npmjs.com/package/react-marquee-renderer
react-marquee-renderer
react
react-gameface
reconciler
hostConfig
Forgot to implement update for src attribute
https://blog.atulr.com/react-custom-renderer-1/
https://youtu.be/CGpMlWVcHok
https://jobs.mojang.com
@pirelenito