class SearchMovies extends Component { render() { return ( <p> StarWars </p> ) } } Notice the return statement has parentheses() not braces{} This is because of JavaScript's automatic semicolon insertion. So, the return will have no value if we have braces, parentheses helps in overcoming that....
var state = {'veg': 'potato'} //All Same state = $.extend({}, state, {'fruit': 'apple'}) // jQuery state = Object.assign({}, state, {'fruit': 'apple'}) // JS state = { ...state, 'fruit': 'apple'} //ES6 Spread operator Notice the above code it does the same thing. Spread operator is an easy to use syntax for object/...
If you want to add a feature where in you have to open the native SMS client with some msg content along with the recipient's mobile number. You can do something similar to 'mailto' for email. For Android <a href="sms:900000000?body=...
Lets start with a fairly old example in a new JS library. Here is the codepen example See the Pen React 101 - Ex 1 by Vetrichelvan Jeyapalpandy (@vetri02) on CodePen. <html> <head> <script src="https://cdnjs.cloudflare.com/...
jQuery Mobile (jQM) by default hides the address bar in your mobile site. But sometimes you might not want that to happen automatically, as you may be using a App banner to promote your app. In that case automatically hiding the address bar will hide...