@cfpb/rental-assistance-finder

This tool allows users to view and filter emergency rental assistance programs funded by the U.S. Department of Treasury’s Emergency Rental Assistance Program.

Usage no npm install needed!

<script type="module">
  import cfpbRentalAssistanceFinder from 'https://cdn.skypack.dev/@cfpb/rental-assistance-finder';
</script>

README

Rental assistance finder tool

This tool allows users to view and filter emergency rental assistance programs funded by the U.S. Department of Treasury’s Emergency Rental Assistance Program.

React app

This tool is developed and maintained as a standalone React app. The app is then built, and the final, compiled Javascript and CSS files are used by our site. These compiled files can be found in the dist directory.

By distributing both the React source code and the final built Javascript and CSS files, we hope this package can be useful to more developers, as well as opening up our process for developing and publishing this application.

To run locally as a React component

  1. Clone repo

  2. Run yarn

  3. Run yarn start

    This runs the app in the development mode.

    Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.

To use inside a website

  1. (Optional) Install this package using npm install
  2. Include the main.js and main.css files from the dist/ folder in your HTML page.
  3. Add a container element to the page with id rental-assistance-finder
  4. From here, you may need to further adjust CSS rules to customize the style of the resulting elements.