可以在PHP Laravel刀片中使用原子设计吗?
在React中,您可以在具有自己的JS和CSS的文件夹中创建单独的组件。 在Laravel中,我看到了使用@includes()
,@extends()
,@yarn()
和@section的可能性()
发送参数以编辑内部内容并模拟React,但与依赖关系(CSS和JS)有关,这些内容并未在刀片上的正确位置分配。我该如何解决?
In React, you can create separate components in folders, which have their own JS and CSS.
In Laravel I saw the possibility of using @includes()
, @extends()
, @yarn()
, and @section()
sending parameters to edit the internal content and simulate react, but in relation to dependencies (css and js), these are not allocated in the correct positions on the blade. How can I resolve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题并不十分清楚,但是假设我对您的问题的理解,这是一种可能性之一。
现在,在您的main.blade.php中
Your questions isn't extremely clear, but assuming my understanding of your question, here is one of the possibility.
Now, within your main.blade.php