export default function Downloading(props) {
return (
<>
{
props.isDownload
? <>{props.children()}</>
: <div>Загрузка...</div>
}
</>
)
}
<Downloading isDownload={isDownload}>
{() => <img src={`http://openweathermap.org/img/wn/${data.current.weather[0].icon}@4x.png`} alt="Weather" />}
</Downloading>
const fragment = document.createDocumentFragment();
const app = createApp(MyComponent).mount(fragment);
console.log(app.count);
console.log(app.$data.count);
exports.findOne = async (columnsObject) => {
const columns = [];
Object.entries(columnsObject).forEach(([key, value]) => {
columns.push({ [key]: value });
});
const user = await User.findOne({
where: {
$or: columns,
},
});
return user;
};
@mixin alt {
.alt & {
@content;
}
}
.test{
background: red;
@include alt{
background: green;
}
}