This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ... | |
class App extends Component { | |
state = { | |
profiles: ['foo', 'bar', 'biz'] | |
} | |
render() { return ( | |
<AppContainer /> | |
)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports ... | |
class App extends Component { | |
state = { | |
routes: storage.get_profiles() | |
} | |
add_route = () => { | |
this.setState({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports ... | |
class App extends Component { | |
state = { | |
routes: storage.get_profiles() | |
} | |
add_route = () => { | |
this.setState({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports ... | |
class App extends Component { | |
state = { | |
routes: storage.get_profiles() | |
} | |
add = () => { | |
this.setState({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { createStackNavigator, createAppContainer } from 'react-navigation'; | |
import Home from './pages/home/home'; | |
import Profile from './pages/profile/profile'; | |
import Create from './pages/create/create'; | |
import storage from './funcs/storage'; | |
class App extends Component { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { createStackNavigator, createAppContainer } from 'react-navigation'; | |
import Home from './pages/home/home'; | |
import Profile from './pages/profile/profile'; | |
import Create from './pages/create/create'; | |
class App extends Component { | |
render() { return ( | |
<AppContainer /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react'; | |
import { render } from 'ink'; | |
import Input from './components/input'; | |
function Container() { | |
// LOCAL STATE | |
const [local, set_local] = useState({ | |
name: 'testing' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { gql, useMutation } from '@apollo/client' | |
const QUERY = gql` | |
mutation AddBook($title: String!, $published: Int!, $author: String!, $genres: [String!]!) { | |
addBook(title: $title, published: $published, author: $author, genres: $genres) { | |
title | |
published | |
author | |
genres | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:go_router/go_router.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
final score_state = StateProvider<int>((ref) => 0); | |
main() { | |
runApp( | |
ProviderScope(child: MaterialApp.router( | |
debugShowCheckedModeBanner: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
main() async { | |
runApp(const MaterialApp( | |
home: Scaffold(body: Component()) | |
)); | |
} |
OlderNewer