Skip to content

Commit

Permalink
fix: Update README.md
Browse files Browse the repository at this point in the history
BREAKING CHANGE: let's see what happens
  • Loading branch information
nicolethoen authored Jul 9, 2024
1 parent 6fa6e86 commit 177581e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,18 @@ This repo contains React Virtual assistant implementation.
```
import * as React from 'react';
import { Text } from '@patternfly/react-core';
import { createUseStyles } from 'react-jss';
// do not forget to export your component's interface
// always place the component's interface above the component itself in the code
export interface MyComponentProps {
text: String;
}
const useStyles = createUseStyles({
myText: {
fontFamily: 'monospace',
fontSize: 'var(--pf-v5-global--icon--FontSize--md)',
},
})
// do not use the named export of your component, just a default one
const MyComponent: React.FunctionComponent<MyComponentProps> = () => {
const classes = useStyles();
return (
<Text className={classes.myText}>
<Text>
This is my new component
</Text>
);
Expand Down

0 comments on commit 177581e

Please sign in to comment.