Skip to content

Files

Latest commit

f6f6ab6 · Nov 2, 2022

History

History
25 lines (19 loc) · 653 Bytes

CHALLENGE.md

File metadata and controls

25 lines (19 loc) · 653 Bytes

challenge

a challenge for the brave

problem

build a <DismissableBlurb /> component similar to the one on GitHub

see: example

requirements

  • should render children components inside it
    • required
  • should have an "x" in the top-right corner
    • clicking the "x" should remove the element from the DOM

api

  • should combine JSDoc + TS to provide good documentation
<DismissableBlurb>
    <h3>Welcome to the new feed!</h3>
    <p>We're updating this to make it more interactive and useful.</p>
    <a href="https://example.com/feedback">Send feedback</a>
</DismissableBlurb>