Open app/setup.php
, find the after_setup_theme
action and put add_theme_support('woocommerce');
inside the function.
Add the templates you want to override in resources/woocommerce
:
theme
│
import React from 'react'; | |
export default class App extends React.Component { | |
state: { | |
searchText: '', | |
data: [{id: 1, text: 'text 1'}, {id: 2, text: 'text 2'}] | |
} | |
renderFilteredData = () => { | |
const { searchText, data } = this.state |