Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
import React, { Component } from 'react'; | |
import { View, TouchableOpacity } from 'react-native'; | |
import _ from 'lodash'; | |
import { scaleLinear } from 'd3-scale'; | |
import { mean } from 'd3-array'; | |
const ACTIVE = '#FF1844', | |
INACTIVE = '#424056', | |
ACTIVE_PLAYABLE = '#1b1b26' |
function sum(a,b,c){ | |
return a+b+c | |
} |
<div class="app-container"> | |
<div class="app-header"> | |
<div class="app-header-left"> | |
<span class="app-icon"></span> | |
<p class="app-name">Portfolio</p> | |
<div class="search-wrapper"> | |
<input class="search-input" type="text" placeholder="Search"> | |
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="feather feather-search" viewBox="0 0 24 24"> | |
<defs></defs> | |
<circle cx="11" cy="11" r="8"></circle> |
export const checkAuth = () => { | |
let localAuth = localStorage.getItem('auth') | |
if(localAuth){ | |
return JSON.parse(localAuth) | |
} | |
return false | |
} | |
export const requestHelper = (url, method, headers, data) => { | |
let token = checkAuth() |