Мое точное сообщение, используя Laravel 5.6, «реагировать»: «^ 16.8.0», «реагировать-дом»: «^ 16.8.0»,
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `Pricing`.
in Pricing
ресурсы / активы / js /
require('./components/Reactapp');
Reactapp. js
import React from 'react';
import ReactDOM from 'react-dom';
import Pricing from './Pricing';
ReactDOM.render(<Pricing />, document.getElementById('reactApp'));
Pricing.jsx
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import CarouselPhotos from './CarouselPhotos';
import { Col, Container, Dropdown, DropdownButton, Form, Row } from 'react-bootstrap';
export default class Pricing extends Component {
render() {
return (
// render stuff here
);
}
}
Не могу понять, почему я получаю эту ошибку. Есть идеи?