My problem is that WebStorm doesn't work as I expected with lit-html.
I installed with $npm install lit html
. I have node modules directory, I have my package JSON and lock JSON with everything standard inside for new library, yet don't find any of the elements. For example don't recognize @click
as an event listener:
import {html, render} from 'lit-html';
let example = (data) => html `
<div class="contact card">
<div>
<a class="far fa-user-circle gravatar"></a>
</div>
<div class="info">
<h2>Name: John</h2>
<button @click=${data} class="details">Details</button>
<div class="details" id="1">
<p>Phone number: 0847759632</p>
<p>Email: john@john.com</p>
</div>
</div>
</div>
`;
lit-html is not yet supported, please vote for WEB-32640 to be notified on any progress with this feature
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.