November 2019
Intermediate to advanced
296 pages
7h 52m
English
We can find the core of the application in the file named App.tsx. It has the main React component launched at the beginning of the application. Here is our full application code to calculate the addition of two tensors. The returned value from the render() method is JSX, which is a syntax extension of JavaScript. React Native recommends using JSX to render the UI because it enables us to focus on the components containing both markup and business logic:
import React from 'react';import {Component} from 'react';import { StyleSheet, Text, View } from 'react-native';import * as tf from '@tensorflow/tfjs';import * as tfjsNative from '@tensorflow/tfjs-react-native';export default class TensorFlowJSApp extends Component ...Read now
Unlock full access