Skip to content

A collection of easy-to-digest code examples for Lightning Web Components on any platform.

License

Notifications You must be signed in to change notification settings

anirudh180694/lwc-recipes-oss

 
 

Repository files navigation

Lightning Web Components Recipes Open Source

Github Workflow codecov

A collection of easy-to-digest code examples for Lightning Web Components Open Source. Each recipe demonstrates how to code a specific task in 30 lines of code or less. A View Source link takes you right to the code in GitHub. From Hello World to data access and third-party libraries, there is a recipe for that!

Recipes Live Version

Check out https://lwc-recipes-oss.herokuapp.com live on Heroku. Or on https://recipes.lwc.dev.

Local Development

  1. Clone the lwc-recipes-oss repository:
git clone https://github.com/trailheadapps/lwc-recipes-oss
cd lwc-recipes-oss
  1. Install the project dependencies using yarn (or npm, if you prefer that alternatively)
yarn install
  1. Start the app in watch mode.
yarn watch
  1. Enjoy the app!

Modifications for Edge browser users

The Edge browser currently doesn't support native shadow DOM. If you want to use this application you have to manually add the synthetic shadow DOM to your clone. Add to the first line of the index.js this code:

import '@lwc/synthetic-shadow';

About

A collection of easy-to-digest code examples for Lightning Web Components on any platform.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 70.2%
  • HTML 20.3%
  • CSS 9.5%