Skip to content

React Hooks and DOM events #327

Closed Answered by silviogutierrez
geoffreynyaga asked this question in Q&A
Discussion options

You must be logged in to vote

@geoffreynyaga it's very simple, Layout isn't special. But if you remove it, you're not including the client scripts at all. Nothing is executing.

<script
    defer
    crossOrigin="anonymous"
    src={`${context.STATIC_URL}dist/index.js`}
/>

So no JS is running. So be sure to include client scripts in whatever you use to replace Layout.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@silviogutierrez
Comment options

Answer selected by silviogutierrez
@silviogutierrez
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants