Socket
Socket
Sign inDemoInstall

react-beret

Package Overview
Dependencies
8
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-beret

React components for your web page's tracking, assets, and more


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

CircleCI

beret

Beret is a library for building HTML templates with React. It contains components for encapsulating the stuff that your page needs to work. Things like Google Tag Manager, web fonts, etc., are required, but are distractions from actually building your content. Componentizing them with beret helps you to get back to what matters and prevent plugins and assets from falling through the cracks.

Beret is intended to be used with server-side rendering since many resources are required to be on the page before it is loaded.

Example

To see an example of beret in action, check out the examples folder. It uses server-side rendering to create index.html. You can view the result in this repository or follow these steps to play with it for yourself:

  1. Clone this repository.
  2. Run yarn install:peers to install all dependencies and peer dependencies.
  3. Run yarn example.
  4. Open examples/index.html in your editor or your browser.

Contributing

We gladly welcome contributions! Here's how to get started.

  1. Clone this repository.
  2. Run yarn install:peers to install all dependencies and peer dependencies.
  3. Run yarn test to ensure all the tests are currently passing.
  4. Make any changes you want to make.
  5. Add tests, and test your changes as you develop with yarn test:watch.
  6. If necessary, update the example page in the examples folder. Run yarn start to start the webpack-dev-server and test your changes to the example page in your browser.

Keywords

FAQs

Last updated on 18 Apr 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc