What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-06 06:23:02
react native stacknavigator
// In App.js in a new project import * as React from 'react'; import { View, Text } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; function HomeScreen(... Add solution -
Other 2021-10-05 21:16:05
materil formik
import * as React from 'react'; import { Formik, Form, Field } from 'formik'; import { Button, LinearProgress } from '@material-ui/core'; import { TextField } from 'formik-material-ui'; interface Values { email: string; password: string; } function ... Add solution -
Javascript 2021-10-01 22:31:02
web3-react readonly provider error fix
import { StrictMode, Component } from 'react' import { createWeb3ReactRoot, Web3ReactProvider } from '@web3-react/core' import * as uniwallet from 'uni-wallet-connect' import '../styles/global.css' import '@reach/dialog/styles.css' // TODO fix this class... Add solution -
Javascript 2021-09-28 14:44:03
how to make a search bar in react django
import * as React from 'react'; import { Searchbar } from 'react-native-paper'; export default class MyComponent extends React.Component { state = { firstQuery: '', }; render() { const { firstQuery } = this.state; return ( <Se... Add solution -
Javascript 2021-09-28 07:51:07
firebase tutorial with react
import * as firebase from 'firebase' const firebaseConfig = { apiKey: "AIzaSyC6EDL8gMkZc3GGzGveMqWe5zvAr5DNiL4", authDomain: "blood-components.firebaseapp.com", databaseURL: "https://blood-components.firebaseio.com&qu... Add solution -
Other 2021-09-26 11:39:04
expo location background example
import * as Location from 'expo-location'; import * as TaskManager from 'expo-task-manager'; import axios from 'axios'; const TASK_FETCH_LOCATION = 'TASK_FETCH_LOCATION'; // 1 define the task passing its name and a callback that will be called whenever ... Add solution -
Javascript 2021-09-25 19:07:04
threejs
import * as THREE from './js/three.module.js'; let camera, scene, renderer; let geometry, material, mesh; init(); function init() { camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 0.01, 10 ); camera.position.z = 1; ... Add solution -
Javascript 2021-09-21 10:44:03
module
no matter what you or any living monkey types.... you will likely import a module, as demonstrated below; import defaultExport from 'module_name'; import * as name from 'module_name'; import { content } from 'module_name'; import { content as alias } fro... Add solution