Please enable JavaScript.
Coggle requires JavaScript to display documents.
react-native-preview (Javascript ES6 (Rest Parameter
...variable = array
…
Javascript ES6
Rest Parameter
...variable = array
var new_arr = [...array,''d','e'];
console.log([...new_arr]);//a b c d e
-
De-structuring Assignments
const {a,b,c,d,e,f} = probs
-
-
Project
Redux
-
Why?
Your app scale, expand, many states need to be managed and updated, we need Redux to restructure and manage state more efficiency.
How?
Install Redux to the app.
Separate the app by redux model
Using Actions - Reducers to manage action from user and App state
Components
-
Styling
-
-
Layout Flexbox
-
alignItems
flex-start, center, flex-end, and stretch
justifyContent
flex-start, center, flex-end, space-around, space-between and space-evenly
-
-
Props
Properties/Configuration of a component
Use to pass data / event down to child components
Props be set by parent
{children}: value between <tags>
-
-