title: React native variable declaration
body: <p>Whats the difference between these way of declaring variables in react-native.</p>
  
  <pre><code>import React, { Component } from 'react';
  import { AppRegistry, Image, View, Text, } from 'react-native';
  export default class Hello extends Component {
  render() {
  **const var1 = 'hi';**
  return ( );
  }}
  
  import React, { Component } from 'react';
  import { AppRegistry, Image, View, Text, } from 'react-native';
  **const var1 = 'hi';**
  export default class Hello extends Component {
  render() {
  return ( );
  }}
  </code></pre>