Fix invalid element type error
This commit is contained in:
parent
486bba76d1
commit
4d1d2a4825
|
@ -2,7 +2,7 @@ import React, {Component} from 'react';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import {About, Blog, Home, Wrapper} from '../components';
|
import {About, Blog, Home, Wrapper} from '../components';
|
||||||
|
|
||||||
export default class BlogContainer extends Component {
|
export default class MainContainer extends Component {
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { MainContainer, PostContainer } from '../containers'
|
import { MainContainer, PostContainer } from '../containers'
|
||||||
import { NotFoundWrapper } from '../components';
|
|
||||||
import { getData } from './api'
|
import { getData } from './api'
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { renderToString } from 'react-dom/server'
|
import { renderToString } from 'react-dom/server'
|
||||||
import { StaticRouter as Router, matchPath } from 'react-router-dom'
|
import { StaticRouter as Router, matchPath } from 'react-router-dom'
|
||||||
import { App } from '../components/App'
|
import { App } from '../components'
|
||||||
import routes from './routes'
|
import routes from './routes'
|
||||||
|
|
||||||
export function serverRender(req, res, next) {
|
export function serverRender(req, res, next) {
|
||||||
|
|
Loading…
Reference in New Issue