Anonymous Function In JavaScript Get link Facebook X Pinterest Email Other Apps October 30, 2020 file name: main.js----------------------------------------------------------------------var laptop= function(){ console.log("This is anonymous function ");}laptop(); Get link Facebook X Pinterest Email Other Apps Comments
es6 Default Parameters in Javascript October 21, 2020 // es6 Defaul Parameters in Javascript const multi = ( a , b = 5 ) => { console . log ( `the muliplication of two no is ${ a * b }` ); } multi ( 4 ); Read more
React Native FlatList August 29, 2020 App Name: Test Component Name: App.js ------------------------------------------------------------------------------------ import React , { useState } from 'react' ; import { StyleSheet , Text , View , FlatList , } from 'react-native' ; // class App extends Component { export default function App (){ const [ people , ] = useState ([ { name : 'ReactNative King' , id : '1' }, { name : 'ReactNative King' , id : '2' }, { name : 'ReactNative King' , id : '3' }, { name : 'ReactNative Kingaun' , id : '4' }, { name : 'ReactNative King' , id : '5' }, { name : 'ReactNative King' , id : '6' }, { name : 'ReactNative King' , id : '7' }, ]); // render() { return ( < View style = { styles . container } > < FlatList keyEtractor = { ( item ) => item . i... Read more
React Native class component August 07, 2020 class component: class component access react lifecycle methods and render and state props functionality. app name : test component name: App.js ----------------------------------------------------------------------------------------------------------------------- /** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow strict-local */ import React , { Component } from 'react' import { View , Text , Button , } from 'react-native' ; class App extends Component { render () { function hello (){ alert ( "Welcome class component ReactNative King" ) } return ( < View > < Text > Class Component </ Text > < Button title = "Click Me " onPress = { hello } /> </ View > ) } } export default App ; Read more
Comments
Post a Comment