Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 2, 2022
1 parent c595e4b commit fc84917
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ npm i react-keywords

## Basic Usage

```jsx
import React from 'react';
import Keywords from 'react-keywords';

export default function Demo() {
return (
<Keywords value="react">
Highlight a keyword in a piece of text and return a React element.

React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.

Build encapsulated components that manage their own state, then compose them to make complex UIs.
</Keywords>
);
}
```

```jsx mdx:preview
import React, { useState, Fragment } from 'react';
import Keywords from 'react-keywords';
Expand Down

0 comments on commit fc84917

Please sign in to comment.