File tree Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,19 @@ npm install react react-dom prop-types styled-components @zendeskgarden/react-th
2222 */
2323import ' @zendeskgarden/react-buttons/dist/styles.css' ;
2424
25- import { Fragment } from ' react' ;
2625import { ThemeProvider } from ' @zendeskgarden/react-theming' ;
2726import { Button } from ' @zendeskgarden/react-buttons' ;
2827
2928/**
3029 * Place a `ThemeProvider` at the root of your React application
3130 */
3231< ThemeProvider>
33- < Fragment >
32+ <>
3433 < Button onClick= {() => alert (' clicked' )}> Default< / Button>
3534 < Button primary disabled>
3635 Disabled Primary button
3736 < / Button>
38- < / Fragement >
37+ < / >
3938< / ThemeProvider> ;
4039```
4140
Original file line number Diff line number Diff line change @@ -9,21 +9,9 @@ This package includes components relating to dropdowns in the
99npm install @zendeskgarden/react-dropdowns
1010
1111# Peer Dependencies - Also Required
12- npm install react react-dom prop-types styled-components@3.4.10 @zendeskgarden/react-theming
12+ npm install react react-dom prop-types styled-components @zendeskgarden/react-theming
1313```
1414
15- ## Requirements
16-
17- This package uses several modern React features like [ Context] ( https://reactjs.org/docs/context.html )
18- and [ Hooks] ( https://reactjs.org/docs/hooks-intro.html ) to provide an enhanced component API.
19-
20- These features require the following minimum versions of the dependencies:
21-
22- - ` react@^16.8.0 `
23- - ` react-dom@^16.8.0 `
24- - ` styled-components@^3.4.0 `
25- - ` v4 ` will become available once all other packages are migrated
26-
2715## Basic Example
2816
2917``` jsx static
Original file line number Diff line number Diff line change @@ -9,20 +9,9 @@ This package includes components relating to native form fields in the
99npm install @zendeskgarden/react-forms
1010
1111# Peer Dependencies - Also Required
12- npm install react react-dom prop-types styled-components@3.4.10 @zendeskgarden/react-theming
12+ npm install react react-dom prop-types styled-components @zendeskgarden/react-theming
1313```
1414
15- ## Requirements
16-
17- This package uses several modern React features like [ Context] ( https://reactjs.org/docs/context.html )
18- and [ Hooks] ( https://reactjs.org/docs/hooks-intro.html ) to provide an enhanced component API.
19-
20- These features require the following minimum versions of the dependencies:
21-
22- - ` react@^16.8.0 `
23- - ` react-dom@^16.8.0 `
24- - ` styled-components@^4.2.0 `
25-
2615## Usage
2716
2817``` jsx static
You can’t perform that action at this time.
0 commit comments