syunto07ka / jewelry_box

2 stars 0 forks source link

importを絶対パスで行う #63

Closed syunto07ka closed 4 years ago

syunto07ka commented 4 years ago

close #60

syunto07ka commented 4 years ago

証跡

スクリーンショット 2020-04-18 22 32 54
import * as React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import Pages from './pages';

import Button from 'components/atoms/Button'; <- これ

const Containers: React.FC = () => (
  <Router>
    <Switch>
      <Route path="/" exact={true}>
        <Button />
        <Pages />
      </Route>
    </Switch>
  </Router>
);

export default Containers;