Answer the question
In order to leave comments, you need to log in
Why are the required images not connected?
There is approximately the following structure:
There is a separate component with the output of comments to which the comment tree is passed:
const listReviews = [
{
img: require('./img/r1.jpg'),
publish: '30 июл в 10:04',
author: 'Кирилл Фадеев',
message: 'Все хорошо'
},
{
img: require('./img/r2.jpg'),
publish: '30 июл в 10:04',
author: 'Ilay Evil',
message: 'Все отлично'
},
];
<Reviews list={listReviews}/>
Answer the question
In order to leave comments, you need to log in
{
test: /\.(jpg|png|gif|ico|svg)$/,
use: [{
loader: 'file-loader',
options: {
name: 'images/[name]-[hash:base64:5].[ext]'
}
}]
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question